Skip to content

Rcmd problems and questions, lazyloading

4 messages · Kjetil Halvorsen, Uwe Ligges

#
Hola!

I got past the problems I asked about two days ago, thanks. No I am 
updating
CRAN package asypow (the daily package check on CRAN gave warnings due to
.Rd problems, fixed).

Now it PASSED Rcmd check
(WindowsXP home edition, rw2000dev, on a new toshiba laptop, if that 
matters.)

but then Rcmd build --binary
gives problems:
.
.
.
  preparing package asypow for lazy loading
Error in tools:::.read_description(file) :
    file '/DESCRIPTION' does not exist
Execution halted
make: *** [lazyload] Error 1
*** Installation of asypow failed ***

Removing 'C:/DOCUME~1/HALVOR~1/LOCALS~1/Temp/Rbuild.852/asypow'
 ERROR
* installation failed
.
.
.
but as it passed make check, DESCRIPTION obviuosly is there, so this 
must be symptoms of something else.

Then, adding the line
LazyLoad:             FALSE

to DESCRIPTION,
Rcmd build --binary
runs without problems!

What is happening?

Kjetil
#
Kjetil Brinchmann Halvorsen wrote:

            
Kjetil,
works for me with the asypow 1.0, R-2.0.0 alpha (2004-09-16).

Which version of R (I mean the date, a lot of stuff changed during the 
last 2 weeks re. lazy loading and related bug fixes on Windows)?

If it still does not work with a recent alpha version, please send me 
the source package.


What happens if you try
    R CMD INSTALL --build

This way some references get resolves more correctly, and this way is 
probably better tested by the developers and the CRAN Windows package 
maintainer.

Uwe
#
Uwe Ligges wrote:

            
OK, just downloaded latest rw2000dev, but before installing, trying what 
you says below:
With LazyLoad   TRUE this gives the same error:

  preparing package asypow for lazy loading
Error in tools:::.read_description(file) :
    file '/DESCRIPTION' does not exist
Execution halted
make: *** [lazyload] Error 1
*** Installation of asypow failed ***

Again, with LazyLoad  FALSE, it works. (This is rw2000dev dated  
2004-09-13).

Then installing todays build:   (dated  2004-09-17)

(again LazyLoad TRUE)
-- passes Rcmd check
But again the same problem with Rcmd build --binary

 preparing package asypow for lazy loading
Error in tools:::.read_description(file) :
    file '/DESCRIPTION' does not exist
Execution halted
make: *** [lazyload] Error 1
*** Installation of asypow failed ***

Removing 'C:/DOCUME~1/HALVOR~1/LOCALS~1/Temp/Rbuild.2760/asypow'
 ERROR
* installation failed

Again, R CMD INSTALL --build  ..\library\asypow
gives exactly the same error message.

Changing to LazyLoad FALSE  
the problems disappear.

There is probably something with the package hindering lazyloading, but 
it is still strange
that it passes "Rcmd check" when a binary package cannot be built.

Kjetil Halvorsen
#
Kjetil Brinchmann Halvorsen wrote:

            
Kjetil,

I tested the package and it appears to binary-build perfectly on my machine.
Have you made a clean build from scratch (don't only overwrite any old 
directories of R)?
Have you set all the paths correctly and are all tools installed?
Ahhhhh! Here you will need forward slashes:

   R CMD INSTALL --build ../library/asypow
or
   R CMD BUILD --binary ../library/asypow


Uwe