Repository navigation
Open
Description
Trying to find if a missing dependency is causing testunit to fail.
Tested on 0.5.0 and 0.5.1.
Any clues?
Thanks
> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: amd64-portbld-freebsd15.0
Running under: FreeBSD 15amd64-main 15.0-CURRENT FreeBSD 15.0-CURRENT 1500028 amd64
Matrix products: default
LAPACK: /usr/local/lib/R/lib/libRlapack.so; LAPACK version 3.12.0
locale:
[1] C.UTF-8/C.UTF-8/C.UTF-8/C/C.UTF-8/C.UTF-8
time zone: Europe/Lisbon
tzcode source: system (FreeBSD)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.2
<snip>
* checking examples ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
OK
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ...
'FAQ.Rmd' using 'UTF-8'... failed
'converting.Rmd' using 'UTF-8'... OK
'cpp11.Rmd' using 'UTF-8'... failed
'internals.Rmd' using 'UTF-8'... OK
'motivations.Rmd' using 'UTF-8'... failed
ERROR
Errors in running code in vignettes:
when running code in 'FAQ.Rmd'
...
> add_some <- function(x, amount = 1) {
+ add_some_(x, amount)
+ }
> add_some(1)
When sourcing 'FAQ.R':
Error: could not find function "add_some_"
Execution halted
when running code in 'cpp11.Rmd'
...
> 600/(0.005 - 0.002)
[1] 2e+05
> mod <- lm(mpg ~ wt, data = mtcars)
> mpe(mod)
When sourcing 'cpp11.R':
Error: could not find function "mpe"
Execution halted
when running code in 'motivations.Rmd'
...
[1] 2 4 6
> x
[1] 1 2 3
> z <- times_two_rcpp(x)
When sourcing 'motivations.R':
Error: could not find function "times_two_rcpp"
Execution halted
* checking re-building of vignette outputs ... SKIPPED
* DONE
Status: 1 ERROR, 1 NOTE
*** Error code 1
Full log:
00check.log
Metadata
Metadata
Assignees
Labels
No labels
Activity
pachadotdev commentedon Dec 17, 2024
@nunotexbsd the full log says Rcpp is missing, and hence the
times_two_rcppcannot be compiledyou need to install these mentioned in the log
nunotexbsd commentedon Dec 17, 2024
@pachadotdev
Hello,
I think I have all dependencies covered in port.
Do you mind take a look?
Thanks!
Short error log:
Full log:
00check.log
pachadotdev commentedon Jan 3, 2025
@nunotexbsd I was finally able to replicate the error you have!
I added that in an unrelated PR but now I will add that tiny change by separate https://github.com/r-lib/cpp11/pull/427/files#diff-a66dc48b52fad8fe92354878da72e04c4b0bfb9d4fea933afcfa3020ac61b0ebR15
nunotexbsd commentedon Jan 3, 2025
@pachadotdev That's good news!
Didn't found a way to apply the shorter patch:
https://github.com/r-lib/cpp11/pull/427/files#diff-a66dc48b52fad8fe92354878da72e04c4b0bfb9d4fea933afcfa3020ac61b0ebR15 on 0.5.1 tarball from R-cran.
But I will stay tuned and wait for merge so I can test it.
Thanks
pachadotdev commentedon Jan 3, 2025
@nunotexbsd as I commented in the PR, can you install the github version from main?
nunotexbsd commentedon Jan 3, 2025
In order to use FreeBSD ports framework cran helpers, I did download cpp11-main.zip, uncompress and apply 9ebcf41 to it, create a new tarball and use it in ports.
Build is ok, but when running test:
Maybe I missed something here.
pachadotdev commentedon Jan 4, 2025
how about
or
nunotexbsd commentedon Jan 4, 2025
# R CMD check cpp11testpachadotdev commentedon Jan 5, 2025
@nunotexbsd sorry, for a github repo the command is
devtools::check(), unless you 1st build the tar file and then check the tarnunotexbsd commentedon Jan 5, 2025
@pachadotdev after installing missing deps with
> install.packages("PkgName"):pachadotdev commentedon Jan 6, 2025
@nunotexbsd you are all set! the warning is something about the manual, which you can fix with a command equivalent to
apt install qpdfand it only reduces the size of the pdf documentation