Skip to content

Commit 7c65669

Browse files
committed
vendor headers for cpp4rtest
1 parent 86bc537 commit 7c65669

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8876
-10
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@
3232
^softwarex-article$
3333
^vignettes$
3434
^\.github$
35+
^.*\.log$

R/unvendor.R

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
unvendor <- function(path = NULL) {
2424
stopifnot(!is.null(path), dir.exists(path))
2525

26+
path <- normalizePath(path)
27+
2628
# Check if the cpp4r directory exists
2729
cpp4r_dir <- file.path(path, "cpp4r")
2830
cpp4r_hpp_path <- file.path(path, "cpp4r.hpp")
@@ -51,8 +53,12 @@ unvendor <- function(path = NULL) {
5153
}
5254

5355
# Remove the info file if it exists
54-
if (has_info_file) {
55-
unlink(info_file_path)
56+
unlink(info_file_path)
57+
58+
# If path does not contain any other files, remove the directory
59+
remaining_files <- list.files(path, all.files = TRUE, no.. = TRUE)
60+
if (length(remaining_files) == 0) {
61+
unlink(path, recursive = TRUE)
5662
}
5763

5864
if (is_interactive()) {

check-CXX11-clang.log

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
Loading required package: usethis
2+
* using log directory ‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck’
3+
* using R version 4.5.1 (2025-06-13)
4+
* using platform: x86_64-pc-linux-gnu
5+
* R was compiled by
6+
gcc (GCC) 15.1.1 20250425
7+
GNU Fortran (GCC) 15.1.1 20250425
8+
* running under: Manjaro Linux
9+
* using session charset: UTF-8
10+
* using options ‘--no-manual --as-cran’
11+
* checking for file ‘cpp4rtest/DESCRIPTION’ ... OK
12+
* this is package ‘cpp4rtest’ version ‘0.1.0’
13+
* package encoding: UTF-8
14+
* checking CRAN incoming feasibility ... [4s/25s] NOTE
15+
Maintainer: ‘Mauricio Vargas Sepulveda <m.vargas.sepulveda@gmail.com>’
16+
17+
New submission
18+
* checking package namespace information ... OK
19+
* checking package dependencies ... OK
20+
* checking if this is a source package ... OK
21+
* checking if there is a namespace ... OK
22+
* checking for executable files ... OK
23+
* checking for hidden files and directories ... OK
24+
* checking for portable file names ... OK
25+
* checking for sufficient/correct file permissions ... OK
26+
* checking serialization versions ... OK
27+
* checking whether package ‘cpp4rtest’ can be installed ... [40s/41s] OK
28+
* used C++ compiler: ‘clang version 20.1.8’
29+
* checking installed package size ... OK
30+
* checking package directory ... OK
31+
* checking for future file timestamps ... OK
32+
* checking DESCRIPTION meta-information ... OK
33+
* checking top-level files ... OK
34+
* checking for left-over files ... OK
35+
* checking index information ... OK
36+
* checking package subdirectories ... OK
37+
* checking code files for non-ASCII characters ... OK
38+
* checking R files for syntax errors ... OK
39+
* checking whether the package can be loaded ... OK
40+
* checking whether the package can be loaded with stated dependencies ... OK
41+
* checking whether the package can be unloaded cleanly ... OK
42+
* checking whether the namespace can be loaded with stated dependencies ... OK
43+
* checking whether the namespace can be unloaded cleanly ... OK
44+
* checking loading without being on the library search path ... OK
45+
* checking use of S3 registration ... OK
46+
* checking dependencies in R code ... OK
47+
* checking S3 generic/method consistency ... OK
48+
* checking replacement functions ... OK
49+
* checking foreign function calls ... OK
50+
* checking R code for possible problems ... OK
51+
* checking Rd files ... OK
52+
* checking Rd metadata ... OK
53+
* checking Rd line widths ... OK
54+
* checking Rd cross-references ... OK
55+
* checking for missing documentation entries ... WARNING
56+
Undocumented code objects:
57+
‘_cpp4rtest_assign_cpp4r_’ ‘_cpp4rtest_cpp4r_add_vec_for_’
58+
‘_cpp4rtest_cpp4r_insert_’ ‘_cpp4rtest_cpp4r_named_list_c_style_’
59+
‘_cpp4rtest_cpp4r_named_list_push_back_’
60+
‘_cpp4rtest_cpp4r_push_and_truncate_’ ‘_cpp4rtest_cpp4r_release_’
61+
‘_cpp4rtest_cpp4r_safe_’ ‘_cpp4rtest_data_frame_’ ‘_cpp4rtest_grow_’
62+
‘_cpp4rtest_grow_cplx_’ ‘_cpp4rtest_grow_strings_cpp4r_’
63+
‘_cpp4rtest_grow_strings_manual_’ ‘_cpp4rtest_notroxcpp1_’
64+
‘_cpp4rtest_notroxcpp6_’ ‘_cpp4rtest_ordered_map_to_list_’
65+
‘_cpp4rtest_protect_many_’ ‘_cpp4rtest_protect_many_cpp4r_’
66+
‘_cpp4rtest_protect_many_preserve_’ ‘_cpp4rtest_protect_many_sexp_’
67+
‘_cpp4rtest_protect_one_’ ‘_cpp4rtest_protect_one_cpp4r_’
68+
‘_cpp4rtest_protect_one_preserve_’ ‘_cpp4rtest_protect_one_sexp_’
69+
‘_cpp4rtest_sum_cplx_accumulate_’ ‘_cpp4rtest_sum_cplx_for2_’
70+
‘_cpp4rtest_sum_cplx_for_’ ‘_cpp4rtest_sum_cplx_for_2_’
71+
‘_cpp4rtest_sum_cplx_for_3_’ ‘_cpp4rtest_sum_cplx_for_4_’
72+
‘_cpp4rtest_sum_cplx_for_5_’ ‘_cpp4rtest_sum_cplx_for_6_’
73+
‘_cpp4rtest_sum_cplx_foreach_’ ‘_cpp4rtest_sum_dbl_accumulate2_’
74+
‘_cpp4rtest_sum_dbl_accumulate_’ ‘_cpp4rtest_sum_dbl_for2_’
75+
‘_cpp4rtest_sum_dbl_for3_’ ‘_cpp4rtest_sum_dbl_for_’
76+
‘_cpp4rtest_sum_dbl_foreach2_’ ‘_cpp4rtest_sum_dbl_foreach_’
77+
‘_cpp4rtest_sum_int_accumulate_’ ‘_cpp4rtest_sum_int_for2_’
78+
‘_cpp4rtest_sum_int_for_’ ‘_cpp4rtest_sum_int_foreach_’
79+
‘_cpp4rtest_unordered_map_to_list_’ ‘notroxcpp1_’ ‘notroxcpp6_’
80+
All user-level objects in a package should have documentation entries.
81+
See chapter ‘Writing R documentation files’ in the ‘Writing R
82+
Extensions’ manual.
83+
* checking for code/documentation mismatches ... OK
84+
* checking Rd \usage sections ... OK
85+
* checking Rd contents ... OK
86+
* checking for unstated dependencies in examples ... OK
87+
* checking line endings in C/C++/Fortran sources/headers ... OK
88+
* checking line endings in Makefiles ... OK
89+
* checking compilation flags in Makevars ... OK
90+
* checking for GNU extensions in Makefiles ... OK
91+
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
92+
* checking use of PKG_*FLAGS in Makefiles ... OK
93+
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
94+
* checking pragmas in C/C++ headers and code ... OK
95+
* checking compilation flags used ... OK
96+
* checking compiled code ... OK
97+
* checking examples ... OK
98+
* checking for unstated dependencies in ‘tests’ ... OK
99+
* checking tests ...
100+
Running ‘testthat.R’
101+
OK
102+
* checking for non-standard things in the check directory ... OK
103+
* checking for detritus in the temp directory ... OK
104+
* DONE
105+
106+
Status: 1 WARNING, 1 NOTE
107+
See
108+
‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck/00check.log’
109+
for details.
110+

check-CXX11-gcc.log

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
Loading required package: usethis
2+
* using log directory ‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck’
3+
* using R version 4.5.1 (2025-06-13)
4+
* using platform: x86_64-pc-linux-gnu
5+
* R was compiled by
6+
gcc (GCC) 15.1.1 20250425
7+
GNU Fortran (GCC) 15.1.1 20250425
8+
* running under: Manjaro Linux
9+
* using session charset: UTF-8
10+
* using options ‘--no-manual --as-cran’
11+
* checking for file ‘cpp4rtest/DESCRIPTION’ ... OK
12+
* this is package ‘cpp4rtest’ version ‘0.1.0’
13+
* package encoding: UTF-8
14+
* checking CRAN incoming feasibility ... [4s/17s] NOTE
15+
Maintainer: ‘Mauricio Vargas Sepulveda <m.vargas.sepulveda@gmail.com>’
16+
17+
New submission
18+
* checking package namespace information ... OK
19+
* checking package dependencies ... OK
20+
* checking if this is a source package ... OK
21+
* checking if there is a namespace ... OK
22+
* checking for executable files ... OK
23+
* checking for hidden files and directories ... OK
24+
* checking for portable file names ... OK
25+
* checking for sufficient/correct file permissions ... OK
26+
* checking serialization versions ... OK
27+
* checking whether package ‘cpp4rtest’ can be installed ... [67s/67s] OK
28+
* used C++ compiler: ‘g++ (GCC) 15.2.1 20250813’
29+
* checking installed package size ... OK
30+
* checking package directory ... OK
31+
* checking for future file timestamps ... OK
32+
* checking DESCRIPTION meta-information ... OK
33+
* checking top-level files ... OK
34+
* checking for left-over files ... OK
35+
* checking index information ... OK
36+
* checking package subdirectories ... OK
37+
* checking code files for non-ASCII characters ... OK
38+
* checking R files for syntax errors ... OK
39+
* checking whether the package can be loaded ... OK
40+
* checking whether the package can be loaded with stated dependencies ... OK
41+
* checking whether the package can be unloaded cleanly ... OK
42+
* checking whether the namespace can be loaded with stated dependencies ... OK
43+
* checking whether the namespace can be unloaded cleanly ... OK
44+
* checking loading without being on the library search path ... OK
45+
* checking use of S3 registration ... OK
46+
* checking dependencies in R code ... OK
47+
* checking S3 generic/method consistency ... OK
48+
* checking replacement functions ... OK
49+
* checking foreign function calls ... OK
50+
* checking R code for possible problems ... OK
51+
* checking Rd files ... OK
52+
* checking Rd metadata ... OK
53+
* checking Rd line widths ... OK
54+
* checking Rd cross-references ... OK
55+
* checking for missing documentation entries ... WARNING
56+
Undocumented code objects:
57+
‘_cpp4rtest_assign_cpp4r_’ ‘_cpp4rtest_cpp4r_add_vec_for_’
58+
‘_cpp4rtest_cpp4r_insert_’ ‘_cpp4rtest_cpp4r_named_list_c_style_’
59+
‘_cpp4rtest_cpp4r_named_list_push_back_’
60+
‘_cpp4rtest_cpp4r_push_and_truncate_’ ‘_cpp4rtest_cpp4r_release_’
61+
‘_cpp4rtest_cpp4r_safe_’ ‘_cpp4rtest_data_frame_’ ‘_cpp4rtest_grow_’
62+
‘_cpp4rtest_grow_cplx_’ ‘_cpp4rtest_grow_strings_cpp4r_’
63+
‘_cpp4rtest_grow_strings_manual_’ ‘_cpp4rtest_notroxcpp1_’
64+
‘_cpp4rtest_notroxcpp6_’ ‘_cpp4rtest_ordered_map_to_list_’
65+
‘_cpp4rtest_protect_many_’ ‘_cpp4rtest_protect_many_cpp4r_’
66+
‘_cpp4rtest_protect_many_preserve_’ ‘_cpp4rtest_protect_many_sexp_’
67+
‘_cpp4rtest_protect_one_’ ‘_cpp4rtest_protect_one_cpp4r_’
68+
‘_cpp4rtest_protect_one_preserve_’ ‘_cpp4rtest_protect_one_sexp_’
69+
‘_cpp4rtest_sum_cplx_accumulate_’ ‘_cpp4rtest_sum_cplx_for2_’
70+
‘_cpp4rtest_sum_cplx_for_’ ‘_cpp4rtest_sum_cplx_for_2_’
71+
‘_cpp4rtest_sum_cplx_for_3_’ ‘_cpp4rtest_sum_cplx_for_4_’
72+
‘_cpp4rtest_sum_cplx_for_5_’ ‘_cpp4rtest_sum_cplx_for_6_’
73+
‘_cpp4rtest_sum_cplx_foreach_’ ‘_cpp4rtest_sum_dbl_accumulate2_’
74+
‘_cpp4rtest_sum_dbl_accumulate_’ ‘_cpp4rtest_sum_dbl_for2_’
75+
‘_cpp4rtest_sum_dbl_for3_’ ‘_cpp4rtest_sum_dbl_for_’
76+
‘_cpp4rtest_sum_dbl_foreach2_’ ‘_cpp4rtest_sum_dbl_foreach_’
77+
‘_cpp4rtest_sum_int_accumulate_’ ‘_cpp4rtest_sum_int_for2_’
78+
‘_cpp4rtest_sum_int_for_’ ‘_cpp4rtest_sum_int_foreach_’
79+
‘_cpp4rtest_unordered_map_to_list_’ ‘notroxcpp1_’ ‘notroxcpp6_’
80+
All user-level objects in a package should have documentation entries.
81+
See chapter ‘Writing R documentation files’ in the ‘Writing R
82+
Extensions’ manual.
83+
* checking for code/documentation mismatches ... OK
84+
* checking Rd \usage sections ... OK
85+
* checking Rd contents ... OK
86+
* checking for unstated dependencies in examples ... OK
87+
* checking line endings in C/C++/Fortran sources/headers ... OK
88+
* checking line endings in Makefiles ... OK
89+
* checking compilation flags in Makevars ... OK
90+
* checking for GNU extensions in Makefiles ... OK
91+
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
92+
* checking use of PKG_*FLAGS in Makefiles ... OK
93+
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
94+
* checking pragmas in C/C++ headers and code ... OK
95+
* checking compilation flags used ... OK
96+
* checking compiled code ... OK
97+
* checking examples ... OK
98+
* checking for unstated dependencies in ‘tests’ ... OK
99+
* checking tests ...
100+
Running ‘testthat.R’
101+
OK
102+
* checking for non-standard things in the check directory ... OK
103+
* checking for detritus in the temp directory ... OK
104+
* DONE
105+
106+
Status: 1 WARNING, 1 NOTE
107+
See
108+
‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck/00check.log’
109+
for details.
110+

check-CXX14-clang.log

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
Loading required package: usethis
2+
* using log directory ‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck’
3+
* using R version 4.5.1 (2025-06-13)
4+
* using platform: x86_64-pc-linux-gnu
5+
* R was compiled by
6+
gcc (GCC) 15.1.1 20250425
7+
GNU Fortran (GCC) 15.1.1 20250425
8+
* running under: Manjaro Linux
9+
* using session charset: UTF-8
10+
* using options ‘--no-manual --as-cran’
11+
* checking for file ‘cpp4rtest/DESCRIPTION’ ... OK
12+
* this is package ‘cpp4rtest’ version ‘0.1.0’
13+
* package encoding: UTF-8
14+
* checking CRAN incoming feasibility ... [4s/20s] NOTE
15+
Maintainer: ‘Mauricio Vargas Sepulveda <m.vargas.sepulveda@gmail.com>’
16+
17+
New submission
18+
* checking package namespace information ... OK
19+
* checking package dependencies ... OK
20+
* checking if this is a source package ... OK
21+
* checking if there is a namespace ... OK
22+
* checking for executable files ... OK
23+
* checking for hidden files and directories ... OK
24+
* checking for portable file names ... OK
25+
* checking for sufficient/correct file permissions ... OK
26+
* checking serialization versions ... OK
27+
* checking whether package ‘cpp4rtest’ can be installed ... [37s/37s] OK
28+
* used C++ compiler: ‘clang version 20.1.8’
29+
* checking installed package size ... OK
30+
* checking package directory ... OK
31+
* checking for future file timestamps ... OK
32+
* checking DESCRIPTION meta-information ... OK
33+
* checking top-level files ... OK
34+
* checking for left-over files ... OK
35+
* checking index information ... OK
36+
* checking package subdirectories ... OK
37+
* checking code files for non-ASCII characters ... OK
38+
* checking R files for syntax errors ... OK
39+
* checking whether the package can be loaded ... OK
40+
* checking whether the package can be loaded with stated dependencies ... OK
41+
* checking whether the package can be unloaded cleanly ... OK
42+
* checking whether the namespace can be loaded with stated dependencies ... OK
43+
* checking whether the namespace can be unloaded cleanly ... OK
44+
* checking loading without being on the library search path ... OK
45+
* checking use of S3 registration ... OK
46+
* checking dependencies in R code ... OK
47+
* checking S3 generic/method consistency ... OK
48+
* checking replacement functions ... OK
49+
* checking foreign function calls ... OK
50+
* checking R code for possible problems ... OK
51+
* checking Rd files ... OK
52+
* checking Rd metadata ... OK
53+
* checking Rd line widths ... OK
54+
* checking Rd cross-references ... OK
55+
* checking for missing documentation entries ... WARNING
56+
Undocumented code objects:
57+
‘_cpp4rtest_assign_cpp4r_’ ‘_cpp4rtest_cpp4r_add_vec_for_’
58+
‘_cpp4rtest_cpp4r_insert_’ ‘_cpp4rtest_cpp4r_named_list_c_style_’
59+
‘_cpp4rtest_cpp4r_named_list_push_back_’
60+
‘_cpp4rtest_cpp4r_push_and_truncate_’ ‘_cpp4rtest_cpp4r_release_’
61+
‘_cpp4rtest_cpp4r_safe_’ ‘_cpp4rtest_data_frame_’ ‘_cpp4rtest_grow_’
62+
‘_cpp4rtest_grow_cplx_’ ‘_cpp4rtest_grow_strings_cpp4r_’
63+
‘_cpp4rtest_grow_strings_manual_’ ‘_cpp4rtest_notroxcpp1_’
64+
‘_cpp4rtest_notroxcpp6_’ ‘_cpp4rtest_ordered_map_to_list_’
65+
‘_cpp4rtest_protect_many_’ ‘_cpp4rtest_protect_many_cpp4r_’
66+
‘_cpp4rtest_protect_many_preserve_’ ‘_cpp4rtest_protect_many_sexp_’
67+
‘_cpp4rtest_protect_one_’ ‘_cpp4rtest_protect_one_cpp4r_’
68+
‘_cpp4rtest_protect_one_preserve_’ ‘_cpp4rtest_protect_one_sexp_’
69+
‘_cpp4rtest_sum_cplx_accumulate_’ ‘_cpp4rtest_sum_cplx_for2_’
70+
‘_cpp4rtest_sum_cplx_for_’ ‘_cpp4rtest_sum_cplx_for_2_’
71+
‘_cpp4rtest_sum_cplx_for_3_’ ‘_cpp4rtest_sum_cplx_for_4_’
72+
‘_cpp4rtest_sum_cplx_for_5_’ ‘_cpp4rtest_sum_cplx_for_6_’
73+
‘_cpp4rtest_sum_cplx_foreach_’ ‘_cpp4rtest_sum_dbl_accumulate2_’
74+
‘_cpp4rtest_sum_dbl_accumulate_’ ‘_cpp4rtest_sum_dbl_for2_’
75+
‘_cpp4rtest_sum_dbl_for3_’ ‘_cpp4rtest_sum_dbl_for_’
76+
‘_cpp4rtest_sum_dbl_foreach2_’ ‘_cpp4rtest_sum_dbl_foreach_’
77+
‘_cpp4rtest_sum_int_accumulate_’ ‘_cpp4rtest_sum_int_for2_’
78+
‘_cpp4rtest_sum_int_for_’ ‘_cpp4rtest_sum_int_foreach_’
79+
‘_cpp4rtest_unordered_map_to_list_’ ‘notroxcpp1_’ ‘notroxcpp6_’
80+
All user-level objects in a package should have documentation entries.
81+
See chapter ‘Writing R documentation files’ in the ‘Writing R
82+
Extensions’ manual.
83+
* checking for code/documentation mismatches ... OK
84+
* checking Rd \usage sections ... OK
85+
* checking Rd contents ... OK
86+
* checking for unstated dependencies in examples ... OK
87+
* checking line endings in C/C++/Fortran sources/headers ... OK
88+
* checking line endings in Makefiles ... OK
89+
* checking compilation flags in Makevars ... OK
90+
* checking for GNU extensions in Makefiles ... OK
91+
* checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK
92+
* checking use of PKG_*FLAGS in Makefiles ... OK
93+
* checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK
94+
* checking pragmas in C/C++ headers and code ... OK
95+
* checking compilation flags used ... OK
96+
* checking compiled code ... OK
97+
* checking examples ... OK
98+
* checking for unstated dependencies in ‘tests’ ... OK
99+
* checking tests ...
100+
Running ‘testthat.R’
101+
OK
102+
* checking for non-standard things in the check directory ... OK
103+
* checking for detritus in the temp directory ... OK
104+
* DONE
105+
106+
Status: 1 WARNING, 1 NOTE
107+
See
108+
‘/home/pacha/Documents/cpp4r/cpp4rtest.Rcheck/00check.log’
109+
for details.
110+

0 commit comments

Comments
 (0)