Conversation
|
@hongyuanjia I am getting an issue with R on the CI (please see https://travis-ci.com/github/psychrometrics/psychrolib/jobs/316453651#L4373-L4376). Do you know how to fix this? |
|
This is caused that we did not commit the NAMESPACE file, which makes Rcpp confused and it thinks that it was not inside an R package. See r-lib/devtools#1599 and https://github.com/RcppCore/Rcpp/blob/a83163943bcbbafc91f66cac72ff8f7bab790730/R/Attributes.R#L425-L430. I am not sure why NAMESPACE was not automatically generated by |
|
It looks like the real reason for the failure is actually due to ‘shiny’’: https://travis-ci.com/github/psychrometrics/psychrolib/jobs/316453651#L3762. Great error reporting in R, I am surprised that builds continue even when individual packages fail to build. |
|
No. I don't think so. The reason htmlwidgets package is to be installed is that we specify The root of the failure still lies in missing |
.travis.yml
Outdated
| before_install: | ||
| - Rscript -e 'install.packages("devtools", dependencies = TRUE)' | ||
| - cd $TRAVIS_BUILD_DIR/src/r | ||
| - touch NAMESPACE |
There was a problem hiding this comment.
Also since we did not commit RcppExports.R, when fresh installing, devtools::document() sometimes will not run Rcpp::compileAttributes() to automatically create it. It is safe to call it after devtools::document().
|
See PR #58 |
Temporary workaround for: