Hi Erin,
You need to make sure that rJava both installs correctly and can load.
The R package system is quite robust, so off the top of my head, I
would guess you need to setup Java properly on the machine. See the
rJava package for what it requires.
Cheers,
Josh
On Sat, Mar 10, 2012 at 3:19 PM, Erin Hodgess <erinm.hodgess at gmail.com>
wrote:> Hello!
>
> I'm using R-2.14.2 on a Windows 7 64 bit machine and I did the
following:
>
>
>
>> install.packages("rJava",depen=TRUE)
> --- Please select a CRAN mirror for use in this session ---
> trying URL
'http://cran.sixsigmaonline.org/bin/windows/contrib/2.14/rJava_0.9-3.zip'
> Content type 'application/zip' length 745867 bytes (728 Kb)
> opened URL
> downloaded 728 Kb
>
> package ?rJava? successfully unpacked and MD5 sums checked
>
> The downloaded packages are in
> ? ? ? ?C:\Users\erin\AppData\Local\Temp\RtmpgVpcnT\downloaded_packages
>> library(OpenStreetMap)
> Loading required package: rJava
> Error : .onLoad failed in loadNamespace() for 'rJava', details:
> ?call: inDL(x, as.logical(local), as.logical(now), ...)
> ?error: unable to load shared object
> 'c:/R64/R-2.14.2/library/rJava/libs/x64/rJava.dll':
> ?LoadLibrary failure: ?%1 is not a valid Win32 application.
>
> Error: package ?rJava? could not be loaded
>> library(rgdal)
> Loading required package: sp
> Geospatial Data Abstraction Library extensions to R successfully loaded
> Loaded GDAL runtime: GDAL 1.9.0, released 2011/12/29
> Path to GDAL shared files: c:/R64/R-2.14.2/library/rgdal/gdal
> Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009, [PJ_VERSION: 470]
> Path to PROJ.4 shared files: c:/R64/R-2.14.2/library/rgdal/proj
>>
>
> What am I doing wrong, please?
>
> Thanks,
> Erin
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> ______________________________________________
> 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.
--
Joshua Wiley
Ph.D. Student, Health Psychology
Programmer Analyst II, Statistical Consulting Group
University of California, Los Angeles
https://joshuawiley.com/