[R] rJava Installation Problems: 'cannot open compressed file 'rJava/DESCRIPTION', probable reason 'No such file or directory''

Uwe Ligges ligges at statistik.tu-dortmund.de
Sat Sep 3 18:50:10 CEST 2011


Your internet connection is flaky,

your first try just downloaded half the package, on the second try you 
got almost nothing (your output says 2519 bytes). So this is your 
connection rather than R or rJava.

Uwe Ligges






On 01.09.2011 15:37, R. Michael Weylandt wrote:
> Good Morning,
>
> I'm trying to install the rJava package on a local (work) machine and having
> some trouble. The following occurred in an RGui session.
>
>> sessionInfo()
>
> R version 2.13.0 (2011-04-13)
> Platform: i386-pc-mingw32/i386 (32-bit)
>
> locale:
> [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> States.1252
> [3] LC_MONETARY=English_United States.1252
> LC_NUMERIC=C
> [5] LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> loaded via a namespace (and not attached):
> [1] tools_2.13.0
>
>>   install.packages("rJava") # Same error thrown for other CRAN mirrors
> --- Please select a CRAN mirror for use in this session ---
> trying URL '
> http://cran.sixsigmaonline.org/bin/windows/contrib/2.13/rJava_0.9-1.zip'
> Content type 'application/zip' length 654936 bytes (639 Kb)
> opened URL
> downloaded 338 Kb
>
> Error in gzfile(file, "r") : cannot open the connection
> In addition: Warning messages:
> 1: In download.file(url, destfile, method, mode = "wb", ...) :
>    downloaded length 347116 != reported length 654936
> 2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
> 3: In gzfile(file, "r") :
>    cannot open compressed file 'rJava/DESCRIPTION', probable reason 'No such
> file or directory'
>
>> install.packages("rJava",repos="http://www.rforge.net")
> trying URL 'http://www.rforge.net/bin/windows/contrib/2.13/rJava_0.9-2.zip'
> Content type 'text/html; charset=utf-8' length unknown
> opened URL
> downloaded 2519 bytes
>
> Error in gzfile(file, "r") : cannot open the connection
> In addition: Warning messages:
> 1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
> 2: In gzfile(file, "r") :
>    cannot open compressed file 'rJava/DESCRIPTION', probable reason 'No such
> file or directory'
>
>
> I'm running as a (temporary) local admin on a Windows 7 platform that's not
> my own. I'm able to install other packages so I believe the problem is
> specific to rJava, but I'm by no means certain of that. It's not super
> important so I'd like to avoid the Rtools + .tar.gz route to avoid the wrath
> of the IT guys, but if there's something obvious I've missed, any help would
> be much appreciated. I've tried to download and look inside the .zip files
> manually from the rforge site, but I haven't been able to get them to
> download.
>
> Thank you,
>
> Michael Weylandt
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list