Skip to content
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

recent build error: "there is no package called 'Rcpp'" #70

Closed
mdlincoln opened this issue Jun 26, 2016 · 6 comments
Closed

recent build error: "there is no package called 'Rcpp'" #70

mdlincoln opened this issue Jun 26, 2016 · 6 comments

Comments

@mdlincoln
Copy link

I've encountered a new build error on a package that has had no such issues before:

...
* checking examples ... ERROR
Running examples in 'fuzzr-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: fuzz_function
> ### Title: Fuzz-test a function
> ### Aliases: fuzz_function p_fuzz_function
> 
> ### ** Examples
> 
> # Evaluate the 'formula' argument of lm, passing additional required variables
> fuzz_function(lm, "formula", data = iris)
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'Rcpp'
Calls: fuzz_function ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
...

Full log here.

This was perplexing given that no errors were raised during the installation of dependencies. The same code built with no errors or warnings on win builder. Any insights?

@krlmlr
Copy link
Owner

krlmlr commented Jun 26, 2016

Weird. This could be a transitional error caused by R 3.3.1, please ping me if the error still occurs in two days.

@ateucher
Copy link

ateucher commented Jun 26, 2016

I'm getting the same error, but on testing installation:

* checking whether package 'rmapshaper' can be installed ...Warning: running command '"c:/R/bin/i386/Rcmd.exe" INSTALL -l "C:/projects/rmapshaper/rmapshaper.Rcheck" --build --no-html --no-multiarch "C:\projects\RMAPSH~1\RMAPSH~1.RCH\00_PKG~1\RMAPSH~1"' had status 1
 ERROR
Installation failed.
See 'C:/projects/rmapshaper/rmapshaper.Rcheck/00install.out' for details.
* DONE
Status: 1 ERROR
See
  'C:/projects/rmapshaper/rmapshaper.Rcheck/00check.log'
for details.
Command exited with code 1
7z a failure.zip *.Rcheck\*

The full log of min is here.

It is building fine on my Mac, on Travis, and on win-builder.

@krlmlr
Copy link
Owner

krlmlr commented Jun 26, 2016

@ateucher: Not sure this is the same problem. Anyway, you can download a zip file of the check directory under "Artifacts", this might help troubleshoot the issue.

@ateucher
Copy link

Thanks @krlmlr, I should have posted the contents of 000install.out from "Artifacts". Here it is:

* installing *source* package 'rmapshaper' ...
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'rmapshaper'
* removing 'C:/projects/rmapshaper/rmapshaper.Rcheck/rmapshaper'

I thought it might be related to @mdlincoln's issue as the error is very similar, though they do occur under different circumstances. My package does not import Rcpp directly, but does require a package that does (V8) - and I think the same is true with @mdlincoln's fuzzr.

@krlmlr
Copy link
Owner

krlmlr commented Jun 26, 2016

Now it makes sense. Let's wait and see if these issues persist.

@krlmlr
Copy link
Owner

krlmlr commented Jul 1, 2016

I'm now pretty sure this is a dupe of #69, and the root cause is r-lib/devtools#1246.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants