From Per.Broberg at astrazeneca.com  Tue Nov 30 15:38:43 2004
From: Per.Broberg at astrazeneca.com (Per.Broberg@astrazeneca.com)
Date: Tue Nov 30 15:39:46 2004
Subject: [Rd] Build package for R 2.0.1 under Windows
Message-ID: <283517E97112D611A94C0001FA7E5D5A04F00DB9@se-drc-mail3.selu.astrazeneca.net>


This summer I and a colleague built a package for R v 1.9.1 containing
C-code under Windows. That only worked for us when
R was installed in c:\program files\R. Now I have R v 2.0.1 and the same
package won't build. I get the following

C:\Program Files\R\rw2001\bin>rcmd check "c:\program
files\r\rw2001\src\library\
sag"
* checking for working latex ...latex: not found
 NO
* using log directory 'C:/Program Files/R/rw2001/bin/sag.Rcheck'
* checking for file 'sag/DESCRIPTION' ... OK
* checking if this is a source package ... OK

installing R.css in C:/PROGRA~1/R/rw2001/bin/SAG~1.RCH


---------- Making package sag ------------
  adding build stamp to DESCRIPTION
  making DLL ...
  ... DLL made
  installing DLL
  installing R files
  installing man source files
  installing indices
  installing help
 >>> Building/Updating help pages for package 'sag'
     Formats: text html latex example chm
  Fstat                             text    html    latex   example
 

# I delete some of the list of functions

  samrocn                           text    html    latex
  samrocnboot                       text    html    latex   example

Microsoft HTML Help Compiler 4.74.8702

Compiling c:\PROGRA~1\r\rw2001\src\library\sag\chm\sag.chm


Compile time: 0 minutes, 1 second
40      Topics
78      Local links
9       Internet links
1       Graphic


Created c:\PROGRA~1\r\rw2001\src\library\sag\chm\sag.chm, 54,723 bytes
Compression decreased file by 51,513 bytes.
  preparing package sag for lazy loading
Error in findpack(package, lib.loc) : There is no package called 'sag'
Execution halted
make: *** [lazyload] Error 1
*** Installation of sag failed ***

Removing 'C:/PROGRA~1/R/rw2001/bin/SAG~1.RCH/sag'
 ERROR
Installation failed. 

What happened?

Per Broberg


[Rd] Build package for R 2.0.1 under Windows
Per.Broberg@astrazeneca.com