Skip to content
Back to formatted view

Raw Message

Message-ID: <CAMjJGR3LE5zSLpkXwoLpohitN1j2dwkYw9bUr1D=W0XYLeRAAw@mail.gmail.com>
Date: 2014-11-10T19:35:44Z
From: Michael Peng
Subject: Error when install R package in Windows

Dear all,

I am now writing a R library. After I build it in Windows *R CMD INSTALL
--build --compile-both foo.tar.gz*, I get a file foo.zip. foo.tar.gz is the
source file tarball. When I tried to install the package in R (
*install.packages("foo.zip")*, or choose the zip file from menu
package/install packages), an error occurred:

In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
cannot open compressed file ?/DESCRIPTION', probable reason 'No such
file or directory'

But if I install the package in the console: *R CMD INSTALL foo.zip*, there
is no such problem.

I am working on Windows 7 and R version is 3.1.2.

And there is no problem for Mac OS and Linux.

Thanks,
Gang

	[[alternative HTML version deleted]]