From murdoch.duncan at gmail.com  Wed Dec  5 20:10:58 2012
From: murdoch.duncan at gmail.com (Duncan Murdoch)
Date: Wed, 05 Dec 2012 14:10:58 -0500
Subject: [Rd] NAMESPACE problem: import(zoo) but 'zoo' could not be
	loaded
In-Reply-To: <50BEE88E.9080701@prodsyse.com>
References: <50BEE88E.9080701@prodsyse.com>
Message-ID: <50BF9C42.8090506@gmail.com>

On 12-12-05 1:24 AM, Spencer Graves wrote:
> Hello:
>
>
>         I'm having problems creating a real NAMESPACE to replace the pro
> forma one in the fda package on R-Forge.  "R CMD check" complains,
> "Error: package 'zoo' could not be loaded ... there is no package called
> 'zoo'";  see below.  I get this both with and without "import(zoo)" in
> NAMESPACE.
>
>
>         Suggestions?
>         Thanks,
>         Spencer
>
>
> p.s.  The current code including this problem can be obtained through
> anonymous access via "svn checkout
> svn://svn.r-forge.r-project.org/svnroot/fda/".
>
>
> C:\Users\sgraves\2012\R_pkgs\fda>R CMD check fda_2.3.3.tar.gz
> * using log directory 'C:/Users/sgraves/2012/R_pkgs/fda/fda.Rcheck'
> * using R version 2.15.2 (2012-10-26)
> * using platform: i386-w64-mingw32 (32-bit)
>
> <snip>
>
> * checking loading without being on the library search path ... WARNING
> Loading required package: splines
> Loading required package: zoo
> Error: package 'zoo' could not be loaded
> In addition: Warning message:
> In library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc =
> lib.loc)
>    :
>     there is no package called 'zoo'
> Execution halted
>
> It looks like this package has a loading problem when not on .libPaths:
> see the messages for details.

This message is printed by tools when there's an error when it tries to 
load a package (not sure if it's yours or zoo) that is not in the 
.libPaths.  There might be more details in the check log.

What does it say there?

Duncan Murdoch
>
>
>
>
>   > sessionInfo()
> R version 2.15.2 (2012-10-26)
> Platform: i386-w64-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252
> [2] LC_CTYPE=English_United States.1252
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods base
>
> other attached packages:
> [1] zoo_1.7-9
>
> loaded via a namespace (and not attached):
> [1] grid_2.15.2     lattice_0.20-10
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] NAMESPACE problem: import(zoo) but 'zoo' could not be loaded
Duncan Murdoch