Skip to content

install-packages

5 messages · Uwe Ligges, John Fox, Göran Broström

#
When I try 'install-packages' (from menu) in R-1.7.0 (Windows), I get
.libPaths()[1], CRAN = NULL)
Error in file(file, "r") : unable to open connection
In addition: Warning message: 
cannot open file `eha060/DESCRIPTION'
but it works with R-1.6.2. It also works if I manually unzip 
'eha060.zip' in the right place.

'eha' is an R package written by myself, and since I intend to send it to 
CRAN soon, I'm worried that I have built it incorrectly. I usually work on 
Linux, and I built eha there. Then I copied the resulting .tar.gz file to
a Windows 2000 machine with Ripley's tools installed and installed it by
'Rcmd INSTALL ...'. So far, so good, everything works. Then I zipped the 
catalogue 'eha' to get 'eha060.zip', and this file doesn't work with
'install.packages', however with 'unzip'.

Is the error with me or with 1.7.0? I have seen the reports on failures 
with bundles, but 'eha' is not a bundle.

Thanks,

G?ran
---
 G?ran Brostr?m                    tel: +46 90 786 5223
 Department of Statistics          fax: +46 90 786 6614
 Ume? University                   http://www.stat.umu.se/egna/gb/
 SE-90187 Ume?, Sweden             e-mail: gb at stat.umu.se
#
G?ran Brostr?m wrote:
That might be the problem: Zip it with the tools collection, most easily 
  using the (recommended) way described below.


 >  and this file doesn't work with
- Use  Rcmd INSTALL --build  ....  to create the Windows binary version 
of the package.

- Does the package pass R CMD check under Linux / Rcmd check under Windows?

- Be sure not to have loaded (an old version of) the package before 
trying install.packages(), because files may be locked.

- Follow readme.packages in .../src/gnuwin32 *exactly*.

Uwe
#
Dear Goran,

I've noticed this problem with recent versions of R when I've zipped an R 
package for Windows using a zip utility different from the recommended 
Info-Zip. If you build the package under Windows with the --binary switch, 
then a usable zip file should be produced.

As an aside, I've noticed recently that packages that I build under Windows 
in this manner report wrong MD5 checksums for some files when they are 
installed, but seem to work fine.

I hope that this helps,
  John
At 04:01 PM 5/29/2003 +0200, G?ran Brostr?m wrote:
-----------------------------------------------------
John Fox
Department of Sociology
McMaster University
Hamilton, Ontario, Canada L8S 4M4
email: jfox at mcmaster.ca
phone: 905-525-9140x23604
web: www.socsci.mcmaster.ca/jfox
#
On Thu, 29 May 2003, Uwe Ligges wrote:

            
I used Brian's tools
Thanks, that worked!
Yes / Yes
Actually, I couldn't find 'Rcmd INSTALL --build' there, so thank you for
enlightening me! (I usually follow instructions exactly, I learned that 
the hard way the first (and last :)) time I installed  R  from source on 
Windows!)

G?ran
#
On Thu, 29 May 2003, John Fox wrote:

            
Thank you. As you saw from Uwe's answer, 'Rcmd INSTALL --build ...' also 
works. My excuse is that I am a novice on Windows.

G?ran