-
Notifications
You must be signed in to change notification settings - Fork 724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R can't find packages installed by travis #4641
Comments
P.S.: I tried to add the |
the install scripts for travis aren't doing anything special -- they use devtools, but they ultimately call into does |
Nope. But it seems "R CMD CHECK --as-cran" does play games with the library paths, setting library to |
During |
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
@craigcitro and @hadley
We're trying to add some unit tests to the caret package that get run by travis, but not on CRAN. This saves build time on CRAN and reduces the number of dependencies they have to install to check our package, while letting us run a more complete test suite on travis.
I thought I could simply install the requirements for the test using the
r_packages:
line in my travis.yml file:However, my
NOT_CRAN=TRUE
builds are still failing. (NOT_CRAN=FALSE
runs fine as the problematic tests are skipped)This is really strange, as when I look at the build logs, I see travis successfully installing all the packages I need:
But when my tests run that depend on those packages, R can't find them:
(I think) the relevant line of code is here in caret's source code:
Why can't the
find.package
function find packages installed by travis? Do they go in a special, separate library somewhere?Also, as an aside, how do I make my travis builds for r less verbose? By default they seem to print way too much information (e.g. it echoes all code run by the tests and manual, even code that doesn't error).
The text was updated successfully, but these errors were encountered: