Skip to content

Commit

Permalink
R cmd check
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Aug 25, 2024
1 parent 23af6b4 commit 4c9a32f
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 148 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, devel, multithreading]
pull_request:
branches: [main, master, devel]

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
#- {os: macos-latest, r: 'oldrel'} # does not have full c++17 support
- {os: macos-latest, r: 'release'}
#- {os: macos-latest, r: 'devel'} # does not install units which is a dependency
#- {os: windows-latest, r: 'oldrel'} # does not have gdal??
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: ubuntu-latest, r: 'oldrel'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install macOS system dependencies
if: runner.os == 'macOS'
run: brew install sdl2 mesa mesa-glu

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check

- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
107 changes: 0 additions & 107 deletions .github/workflows/rhub.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Description: A simple point cloud viewer for R which enable to display million o
points in a fluid way and using few memory. This package aims to replace rgl
in lidR when the point cloud is to big to be held by rgl.
Depends: R (>= 3.1.0)
Imports: Rcpp,grDevices,lidR
Imports: Rcpp,lidR
License: GPL-3
Encoding: UTF-8
LazyData: true
Expand Down
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# Generated by roxygen2: do not edit by hand

export(plot)
export(plot.LAS)
export(plot_xyzrgb)
importClassesFrom(lidR,LAS)
importFrom(Rcpp,evalCpp)
useDynLib(lidRviewer, .registration = TRUE)
2 changes: 1 addition & 1 deletion R/RcppExports.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

lidRviewer <- function(df) {
invisible(.Call(`_lidRviewer_lidRviewer`, df))
invisible(.Call('_lidRviewer_lidRviewer', PACKAGE = 'lidRviewer', df))
}

39 changes: 3 additions & 36 deletions man/plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4c9a32f

Please sign in to comment.