Skip to content

Commit 4c9a32f

Browse files
committed
R cmd check
1 parent 23af6b4 commit 4c9a32f

File tree

6 files changed

+62
-148
lines changed

6 files changed

+62
-148
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master, devel, multithreading]
6+
pull_request:
7+
branches: [main, master, devel]
8+
9+
name: R-CMD-check
10+
11+
jobs:
12+
R-CMD-check:
13+
runs-on: ${{ matrix.config.os }}
14+
15+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
16+
17+
strategy:
18+
fail-fast: false
19+
matrix:
20+
config:
21+
#- {os: macos-latest, r: 'oldrel'} # does not have full c++17 support
22+
- {os: macos-latest, r: 'release'}
23+
#- {os: macos-latest, r: 'devel'} # does not install units which is a dependency
24+
#- {os: windows-latest, r: 'oldrel'} # does not have gdal??
25+
- {os: windows-latest, r: 'release'}
26+
- {os: windows-latest, r: 'devel'}
27+
- {os: ubuntu-latest, r: 'oldrel'}
28+
- {os: ubuntu-latest, r: 'release'}
29+
- {os: ubuntu-latest, r: 'devel'}
30+
31+
env:
32+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
33+
R_KEEP_PKG_SOURCE: yes
34+
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- uses: r-lib/actions/setup-pandoc@v2
39+
40+
- uses: r-lib/actions/setup-r@v2
41+
with:
42+
r-version: ${{ matrix.config.r }}
43+
http-user-agent: ${{ matrix.config.http-user-agent }}
44+
use-public-rspm: true
45+
46+
- name: Install macOS system dependencies
47+
if: runner.os == 'macOS'
48+
run: brew install sdl2 mesa mesa-glu
49+
50+
- uses: r-lib/actions/setup-r-dependencies@v2
51+
with:
52+
extra-packages: any::rcmdcheck
53+
needs: check
54+
55+
- uses: r-lib/actions/check-r-package@v2
56+
with:
57+
upload-snapshots: true

.github/workflows/rhub.yaml

Lines changed: 0 additions & 107 deletions
This file was deleted.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description: A simple point cloud viewer for R which enable to display million o
88
points in a fluid way and using few memory. This package aims to replace rgl
99
in lidR when the point cloud is to big to be held by rgl.
1010
Depends: R (>= 3.1.0)
11-
Imports: Rcpp,grDevices,lidR
11+
Imports: Rcpp,lidR
1212
License: GPL-3
1313
Encoding: UTF-8
1414
LazyData: true

NAMESPACE

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

33
export(plot)
4-
export(plot.LAS)
54
export(plot_xyzrgb)
65
importClassesFrom(lidR,LAS)
7-
importFrom(Rcpp,evalCpp)
8-
useDynLib(lidRviewer, .registration = TRUE)

R/RcppExports.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

44
lidRviewer <- function(df) {
5-
invisible(.Call(`_lidRviewer_lidRviewer`, df))
5+
invisible(.Call('_lidRviewer_lidRviewer', PACKAGE = 'lidRviewer', df))
66
}
77

man/plot.Rd

Lines changed: 3 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)