[R-pkg-team] Bug in r-base and r-cran-rcppparallel

Bastian Blank waldi at debian.org
Thu Feb 11 11:20:33 GMT 2021


Hi Johannes

On Thu, Feb 11, 2021 at 09:26:48AM +0100, Johannes Ranke wrote:
> dyn.load is used in base R to load compiled code from R packages.

Can you show some examples please?  I know C and POSIX, but not much
about R.

>                                                                   As far as I 
> understand, system libraries are linked at compile time and generally do not 
> have to be loaded explicitly. 

Well, nothing forces someone to do that.  Those are also shared libs and
they can be used via dlopen, what dyn.load uses.

> > This are actually two bugs:
> > - r-base dyn.load not accepting relative library names on Linux systems
> The documentation of dyn.load says that it accepts a path to a dynamic shared 
> object. Do we need more than that?

So my change is no problem, because it only changes the behaviour for
'dyn.load("object.so")', but not for
'dyn.load("/home/foo/projects/bar/object.so")'.

The documentation does not list a search behaviour for bare library
names on non-Windows systems.  So completely ignoring the system library
paths is kind of weird.

Bastian

-- 
Without freedom of choice there is no creativity.
		-- Kirk, "The return of the Archons", stardate 3157.4



More information about the R-pkg-team mailing list