Displaying 20 results from an estimated 82 matches for "dynlib".
Did you mean:
dylib
2011 Apr 20
1
FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code
...cally seeing as that list was called Rcpp. Anyway, I was directed to
post my question here. To summarize my current question, I have found two
commands that I want to be able to put into a package. The commands are 'R
CMD SHLIB X.cc X_main.cc' and
'dyn.load(paste("X",.Platform$dynlib.ext,sep="")),' which I would like to
run when my package is installed and maybe have the second command run again
when my package is to be used. I've been trying to figure out the
documentation and learn through examples, but I'm just not getting it and
have been trying for we...
2004 Oct 23
0
Re: (PR#7304) library.dynam() & .dynLibs() do not work as
...K Fax: +44 1865 272595
---------- Forwarded message ----------
Date: Fri, 22 Oct 2004 17:30:13 +0100 (BST)
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
To: Duncan Temple Lang <duncan@wald.ucdavis.edu>
Cc: R-devel@r-project.org
Subject: [Rd] Re: library.dynam() & .dynLibs() do not work as documented
Duncan,
I don't know what we want, but it is not a simple matter of documenting
what .dynLibs currently does. What I see as bugs are
1) the inconsistent names and types of the components returned by
.dynLibs().
2) the inconsistent inclusion or not of R_X11 i...
2004 Oct 22
0
Re: library.dynam() & .dynLibs() do not work as documented
Duncan,
I don't know what we want, but it is not a simple matter of documenting
what .dynLibs currently does. What I see as bugs are
1) the inconsistent names and types of the components returned by
.dynLibs().
2) the inconsistent inclusion or not of R_X11 in the list returned by
.dynLibs().
3) the inclusion of static info (base) by library.dynam().
4) including loadable modules...
2004 Oct 22
0
library.dynam() & .dynLibs() do not work as documented (PR#7304)
...ession to load shared libraries. This vector is
returned as 'invisible', unless the 'chname' argument is missing.
which is clearly no longer true. I don't see why we want loaded modules
in there that have nothing to do with packages, or even non-modules.
At that point .dynLibs() gave
$base
DLL name: base
Filename: base
Dynamic lookup: FALSE
$stats
DLL name: stats
Filename: /usr/local/lib/R/library/stats/libs/stats.so
Dynamic lookup: TRUE
[[3]]
[1] "methods"
which seems useless for
'.dynLibs' is used for getting or setting the packages that ha...
2018 Mar 01
1
Repeated use of dyn.load().
Good question Rolf.
Rui, thanks for pointing out dyn.unload.
When I started using Rcpp a couple of years ago I got burned by stale .so
enough times that I adopted a policy of recompile-then-start new R session.
My workflow does not include Rolf's "brazillion" repeats, so the overhead
of this approach has not been too painful.
The documentation for dyn.unload (via ?dyn.unload)
2004 Oct 22
0
Re: library.dynam() & .dynLibs() do not work as documented (PR#7305)
...uce multiple evaluators in the future,
lots of things will "challenge" the current semantics
and many of them will be desirable. One of these potential changes
is the use of multiple concurrent versions of a package.
Comments, before we fix things?=20
D.=20
>=20
> At that point .dynLibs() gave
>=20
> $base
> DLL name: base
> Filename: base
> Dynamic lookup: FALSE
>=20
> $stats
> DLL name: stats
> Filename: /usr/local/lib/R/library/stats/libs/stats.so
> Dynamic lookup: TRUE
>=20
> [[3]]
> [1] "methods"
>=20
> which seems usele...
2019 Sep 12
2
Fw: Calling a LAPACK subroutine from R
...code>
another way is to use directly dyn.load():
lapack.path <- paste0(file.path(R.home(), ifelse(.Platform$OS.type ==
"windows",
???????? file.path("bin", .Platform$r_arch, "Rlapack"),
file.path("lib", "libRlapack"))),
???????? .Platform$dynlib.ext)
dyn.load(lapack.path)
followed by your code.
Best,
Serguei.
>
> followed by the rest of your script.
> You will get a warning (I do) that "passing a character vector to .Fortran is not portable".
> On other systems this may gave fatal errors. This is quick and very d...
2012 Jul 24
1
Finding dynamic shared libraries loaded with a package
...<- 'bitops'
pkgpath <- system.file(package=pkgname)
library.dynam.unload(pkgname, pkgpath)
Some R packages have shared libraries with names that differ from the
package, and this strategy won't work for them. I'm aware that the
NAMESPACE file will have an entry like this:
useDynLib(libname)
but I don't know how to access this information from within R. Is this
possible?
Another strategy I've looked at is to get all the directories listed by
.dynLibs() and picking out those that contain the path of the package, but
I'd prefer not to do it this way if possible, s...
2007 Aug 03
2
How to properly finalize external pointers?
...tr);
*/
/* this triggers the finalizer but only at next garbage collection */
SET_VECTOR_ELT(obj,0,R_NilValue);
UNPROTECT(1);
return ret;
}
# R-Code
initRindex <- function(){
dyn.load(file.path(.libPaths(), "rindex", "libs", paste("rindex", .Platform$dynlib.ext, sep = "")))
}
doneRindex <- function(){
dyn.unload(file.path(.libPaths(), "rindex", "libs", paste("rindex", .Platform$dynlib.ext, sep = "")))
}
openRindex <- function(n=10){
.Call("rindex_open", as.integer(n))
}
closeRin...
2003 Jun 27
1
library(grid) : .First.lib fails (PR#3347)
Dear r-bugs,
I'm having problems loading the 'grid' package when it has been detached
earlier in the same session:
> library(grid)
> detach("package:grid")
> library(grid)
Error in .Call("L_initGrid", PACKAGE = "grid") :
.Call function name not in load table
Error in library(grid) : .First.lib failed
This bug was mentioned on r-help
2008 Apr 09
1
getNativeSymbolInfo fails with Fortran symbol.
...nable to find 'initaquaphy' in 'test.so', but does find
'initaquaphy_'. Note that is.loaded() works as advertised. Furthermore,
this code works in Windows, R-2.6.2patched44759.
triggerbug.R:
system("R CMD SHLIB test.f")
dyn.load(paste("test",.Platform$dynlib.ext,sep=""))
is.loaded("initaquaphy", PACKAGE="test")
getNativeSymbolInfo("initaquaphy_", PACKAGE="test")
getNativeSymbolInfo("initaquaphy", PACKAGE="test")
cat("All Done")
Resulting in:
> source("triggerbug.R...
2009 Jul 27
3
[LLVMdev] llc - generation of native machine code
...ed with debug information. LLVM - great!)
But now I am looking for generation of machine code for my target. I have
seen, that "llc" has option "-filetype".
It has default value "-filetype=asm", but has more values, as
"-filetype=obj" and "-filetype=dynlib".
"obj" is very interesting, but it till not supported :-(
My goal is generation of elf-file for my target, where can be placed machine
instruction and debug information.
It is possible to create own tool to translate assembler file in "obj", but
in "llc" som...
2009 Mar 16
4
[LLVMdev] n00b question: From module/bitcode to Mach-O dylib file directly?
...is is something I am trying to work on with
> Aaron. You can follow our discussion on the list here, and feel free
> to pitch in.
>
> That said, the MachO generation _should_ work (in 2.5) for outputting
> .o files, which would still need to be linked using your native ld
> into a dynlib. I don't see that llc will ever generate a dynlib, as I
> think that that is not its function. The most you can expect is a
> valid target object file.
>
> If you encounter a particular issue using the -filetype=obj flag,
> please let us know so we can fix it...
>
> I for o...
2009 Jul 27
0
[LLVMdev] llc - generation of native machine code
...ma13tema at yahoo.de> wrote:
> But now I am looking for generation of machine code for my target. I have
> seen, that “llc” has option "-filetype".
>
> It has default value "-filetype=asm", but has more values, as
> "-filetype=obj" and "-filetype=dynlib".
>
> “obj” is very interesting, but it till not supported L
There's work in progress to make this work properly, but it's still a
while off. See http://wiki.llvm.org/Direct_Object_Code_Emission .
-Eli
2005 Jun 03
2
using so-library involving Taucs
...ng test commands:
library(splines)
library(SparseM)
B <- splineDesign(knots = 1:10, x = 4:7)
D <- diff(diag(dim(B)[2]), differences = 1)
BB <- t(B) %*% B
S <- as.matrix.ssc(BB + t(D) %*% D)
if (!is.loaded(symbol.C("hattrace"))) { dyn.load(paste("hattrace",
.Platform$dynlib.ext, sep = "")) }
out <- 0
spur <- (.C("hattrace", as.double(as.vector(slot(S, "ra"))),
as.integer(as.vector(slot(S, "ja") - 1)),
as.integer(as.vector(slot(S, "ia") - 1)),
as.integer(dim(S)[1]), as.double(as...
2008 Mar 17
1
how to get access to C++ Objects
In the "Writing R Extensions" manual appears this example, to get access to C++ function using the R commands:
R> dyn.load(paste("X", .Platform$dynlib.ext, sep = ""))
constructor Y
R> .C("X_main")
constructor X
destructor X
list()
That gives me access to the function "X_main", but how to get access to methods and properties like X.Z() and X.f, defined in the C++ files:
// X.hh
class X
{
public...
2010 Nov 27
1
Bug in parseNamespaceFile or switch( , ... ) ?
...outDS )"
> parseNamespaceFile("",".") # now parse it
$imports
list()
$exports
[1] "outDS"
$exportPatterns
character(0)
$importClasses
list()
$importMethods
list()
$exportClasses
character(0)
$exportMethods
character(0)
$exportClassPatterns
character(0)
$dynlibs
character(0)
$nativeRoutines
list()
$S3methods
[,1] [,2] [,3]
>
So, it picked up 'export' and ignored the other two lines.
Chuck
p.s.
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
locale:
[1] C
attached base packages:
[1]...
2012 Apr 20
1
error loading tcltk2
...derr = TRUE)
error: 'cat' not found
Errore: package/namespace load failed for ‘tcltk2’
It seems .onLoad is trying to run a unix command 'cat' but i'm on a windows
platform:
> str(.Platform)
List of 8
$ OS.type : chr "windows"
$ file.sep : chr "/"
$ dynlib.ext: chr ".dll"
$ GUI : chr "Rgui"
$ endian : chr "little"
$ pkgType : chr "win.binary"
$ path.sep : chr ";"
$ r_arch : chr "i386"
> sessionInfo()
R version 2.15.0 (2012-03-30)
Platform: i386-pc-mingw32/i386 (32-bit)...
2008 Oct 30
1
Compiling R Packages
...library '/home/<username>/.Rlib/Rmpi/libs/Rmpi.so':
/home/<username>/.Rlib/Rmpi/libs/Rmpi.so: undefined symbol: __pgdbg_stub
Error in library(Rmpi) : .First.lib failed for 'Rmpi'
Error in dyn.unload(file.path(libpath, "libs", paste("Rmpi", .Platform$dynlib.ext, :
dynamic/shared library '/home/<username>/.Rlib/Rmpi/libs/Rmpi.so' was not loaded
>
The undefined symbol is for the PGI debugger.
It doesn't matter if the $CC variable is gcc, pgcc, or mpicc, and all three do show up in the make output during the configure process....
2007 Jun 12
1
Cause of error message in cov function?
...t;
$system
[1] "i386, mingw32"
$status
[1] ""
$major
[1] "2"
$minor
[1] "1.0"
$year
[1] "2005"
$month
[1] "04"
$day
[1] "18"
$language
[1] "R"
> .Platform
$OS.type
[1] "windows"
$file.sep
[1] "/"
$dynlib.ext
[1] ".dll"
$GUI
[1] "Rgui"
$endian
[1] "little"
$pkgType
[1] "win.binary"
--
Matthew C Keller
Postdoctoral Fellow
Virginia Institute for Psychiatric and Behavioral Genetics