From ripley at stats.ox.ac.uk  Thu Sep  5 22:38:22 2013
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 05 Sep 2013 21:38:22 +0100
Subject: [Rd] libR.so: cannot open shared object file
In-Reply-To: <5228E964.9030406@yahoo.it>
References: <52264B2B.5020005@yahoo.it>
	<21030.20789.769106.335326@max.nulle.part>
	<52265436.9060800@yahoo.it>
	<alpine.DEB.2.00.1309031503300.30236@cardinals.dreamhost.com>
	<52266055.2000000@yahoo.it>
	<alpine.DEB.2.00.1309041156280.14841@cardinals.dreamhost.com>
	<52279B27.8060801@stats.ox.ac.uk> <522855F5.3040204@yahoo.it>
	<5228E964.9030406@yahoo.it>
Message-ID: <5228EBBE.6080101@stats.ox.ac.uk>

On 05/09/2013 21:28, gianluca.mastrantonio at yahoo.it wrote:
> just for completion
>
> i need to use
> library(Model, lib.loc="user/area/myRLib")
> because if i use
> library(Model)
> i get this message
> Error in library("BayesWrap") : there is no package called 'BayesWrap'

For the record: not if you follow my suggestion.

See ?.libPaths for why.

>
>
>
> Il 05/09/13 11:59, gianluca.mastrantonio at yahoo.it ha scritto:
>> First of all, thanks for your help.
>>
>> I did all the things you told me. I was able to load the library, but
>> then
>>
>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>   unable to load shared object
>> '/lustre/work/gjona2/Wrap/BayesWrap/libs/BayesWrap.so':
>>   libR.so: cannot open shared object file: No such file or directory
>> In addition: Warning message:
>> package 'BayesWrap' was built under R version 2.15.2
>> Error: package/namespace load failed for 'BayesWrap'
>> Execution halted
>>
>> what does it means?
>>
>> G.M.
>>
>> Il 04/09/13 22:42, Prof Brian Ripley ha scritto:
>>> On 04/09/2013 19:58, Geoff Jentry wrote:
>>>>> Can you add some details?
>>>>> Suppose i have the package Model.tar.gz and my writable are is in
>>>>> user/area, what i have to do next to install the package?
>>>>
>>>> What I was picturing was something like this (forgive me if syntax
>>>> isn't
>>>> 100%):
>>>>
>>>> mkdir user/area/myRLib
>>>> R CMD INSTALL --library=user/area/myRLib Model.tar.gz
>>>>
>>>> and then in R:
>>>> library(Model, lib.loc="user/area/myRLib")
>>>>
>>>> Note though Brian Ripley's response to me where he indicates that this
>>>> is handled automatically.
>>>
>>> Yes,  install.packages("Model.tar.gz") should suffice.
>>>
>>>>
>>>> -J
>>>>
>>>> ______________________________________________
>>>> R-devel at r-project.org mailing list
>>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>>
>>
>


-- 
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



[Rd] libR.so: cannot open shared object file
Prof Brian Ripley