[R] Error with Rcmd check library --as-cran
Henrik Bengtsson
hb at biostat.ucsf.edu
Wed Apr 18 03:15:34 CEST 2012
paleotree imports phangorn which depends on Matrix, so your example
does indeed depend on Matrix.
A possible reason is that your installed Matrix was built for a
different version of R, i.e. check packageDescription("Matrix").
/Henrik
On Tue, Apr 17, 2012 at 4:23 PM, David Bapst <dwbapst at uchicago.edu> wrote:
> Hello all,
>
> I was checking the newest update of my library before submitting it to
> CRAN, using R 2.15.0 and Rtools for Windows 215 using Rcmd in the Command
> Prompt, on my x64 Windows7 laptop. I recently heard that for checking
> packages for CRAN submission one should use the option --as-cran;
> previously I was submitting packages, so I was trying that for the first
> time. The check proceeds fine until it tries running the examples, at which
> point it produces the following error message:
>
>> pkgname <- "paleotree"
>> source(file.path(R.home("share"), "R", "examples-header.R"))
>> options(warn = 1)
>> options(pager = "console")
>> library('paleotree')
> Loading required package: ape
> Error in loadNamespace(i, c(lib.loc, .libPaths())) :
> there is no package called 'Matrix'
> Error: package/namespace load failed for 'paleotree'
> Execution halted
>
> My package depends on ape, but not Matrix. Matrix is installed, though, on
> my workstation, as are the other ape dependencies. The check works fine by
> default and with the --timings option. What is different about --as-cran
> that makes it unable to find Matrix?
>
> Thanks for the help,
> -Dave Bapst, UChicago
>
> --
> David Bapst
> Dept of Geophysical Sciences
> University of Chicago
> 5734 S. Ellis
> Chicago, IL 60637
> http://home.uchicago.edu/~dwbapst/
> http://cran.r-project.org/web/packages/paleotree/index.html
>
> <http://home.uchicago.edu/%7Edwbapst/>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list