[R-pkg-devel] trouble with R check

Duncan Murdoch murdoch@dunc@n @ending from gm@il@com
Thu May 31 14:50:42 CEST 2018


On 31/05/2018 8:35 AM, Erin Hodgess wrote:
> Hello!
> 
> 
> I'm working with R-3.4.3 and when I run R CMD check
> rmpiFort_0.0.0.9000.tar.gz, here is the output file.
> 
> 
> * installing *source* package ‘rmpiFort’ ...
> 
> ** libs
> 
> ** arch -
> 
> make: Nothing to be done for `all'.
> 
> installing to /home/hodgess/R-3.4.3/bin/rmpiFort.Rcheck/rmpiFort/libs
> 
> ** R
> 
> ** preparing package for lazy loading
> 
> Error : package or namespace load failed for ‘rmpiFort’ in
> loadNamespace(packag\
> 
> e, lib.loc):
> 
>   cyclic namespace dependency detected when loading ‘rmpiFort’, already
> loading \
> 
> ‘rmpiFort’
> 
> Error : unable to load R code in package ‘rmpiFort’
> 
> ERROR: lazy loading failed for package ‘rmpiFort’
> 
> * removing ‘/home/hodgess/R-3.4.3/bin/rmpiFort.Rcheck/rmpiFort’

Sounds as though something in the package says it depends on itself. 
Possibilities off the top of my head:

You have Depends: rmpiFort or Imports: rmpiFort (or even Suggests: 
rmpiFort, or LinkingTo: rmpiFort) in your DESCRIPTION file.

You have importFrom(rmpiFort, ...) or import(rmpiFort) in your NAMESPACE 
file.

You have requireNamespace("rmpiFort") (or require("rmpiFort"), or 
library("rmpiFort")) in your R source.

Duncan Murdoch



More information about the R-package-devel mailing list