-
Notifications
You must be signed in to change notification settings - Fork 5
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
Proposed addition to check() [using .libPaths() in .Rprofile] #65
Comments
Wow, interesting. I wonder if this should also be reported as a bug in R. For future records, what version of R are you observing this on? |
There's a couple of screenshots as well.
|
And just to be 100% on the same page, will running that |
|
I'd like to confirm this in order to rule out that it's a devtools bug. As a test trying to figure out what's going on, I've added the following to my system2("echo", args = "[system] .Rprofile ...")
.libPaths(c(tempfile(), .libPaths())
system2("echo", args = c("[system] .libPaths: ", .libPaths()))
system2("echo", args = "[system] .Rprofile ... done") to confirm that $ R CMD build listenv
[system] .Rprofile ...
[system] .libPaths: /home/hb/R/x86_64-pc-linux-gnu-library/3.5 /usr/local/lib/R/site-library /usr/lib/R/site-library /usr/lib/R/library
[system] .Rprofile ... done
* checking for file ‘listenv/DESCRIPTION’ ... OK
* preparing ‘listenv’:
* checking DESCRIPTION meta-information ... OK
* installing the package to build vignettes
* creating vignettes ... OK
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘listenv_0.7.0-9000.tar.gz’ So, it's not that |
One further step forward.
See https://github.com/wch/r-source/blob/47b75782bb459cd481e6635852ec5c234b4f530e/src/library/tools/R/build.R#L22 for function reference |
In my
.Rprofile
I've recently added.libPaths("/path/")
Interestingly, this usually works, but occasionally it doesn't. For example,
path/
Likewise, a standard
R CMD build XXX
doesn't work.Proposal: have
check()
detect and warn as necessary. Happy to attempt a PR.The reason I have it in my
.Rprofile
was due tolittler
ignoring.Renviron
files (eddelbuettel/littler#64)The text was updated successfully, but these errors were encountered: