[R] loading Sjava

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Sep 10 15:03:56 CEST 2004


On Fri, 10 Sep 2004, Day, Roger wrote:

> I'm excited about SJava, and I'ld love to get it working, but can't get
> past loading the package.
>  
> .First.lib fails on this statement:
>  
> > library.dynam("SJava", "SJava", "C:/PROGRA~1/R/rw1091/library")
> Error in dyn.load(x, as.logical(local), as.logical(now)) : 
>         unable to load shared library
> "C:/PROGRA~1/R/rw1091/library/SJava/libs/SJava.dll":
>   LoadLibrary failure:  The specified module could not be found.
> 
>  
> Actually, SJava.dll is present there.

But who said `SJava.dll' was the `specified module'?  Hint: it is most
likely not, but also you are trying to load a DLL built under R 1.6.2 into
R 1.9.1 and that is likely to result in such a message.

> Advice????

Read the documentation, especially before posting as the posting guide 
asks.

> I'm using XP.  
> Obtained the package from http://www.stats.ox.ac.uk/pub/bdr/SJava/ .

Do learn to read ReadMe's!  That one says

    SJava_0.65a.tar.gz      modified sources
    SJava.zip               build under R1.6.2

    The sources here will build under R 1.6.x and R-devel (1.7.0-to-be).

    To install:

    Sjava.zip -- unzip in ...\rw1062\library.

and note, not rw1091.

That was a private area, and I have deleted it.  There is a version of 
SJava in the public area http://www.stats.ox.ac.uk/pub/RWin, but do 
practice assiduously your new-found skills at reading ReadMe files.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




More information about the R-help mailing list