search for: dynlibs

Displaying 20 results from an estimated 80 matches for "dynlibs".

Did you mean: dylibs
2011 Apr 20
1
FW: [Rcpp-devel] Question on 5.6 Interfacing C++ code
Hi, apparently I sent my question about using R and C++ to the wrong list, ironically 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
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 in...
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 s...
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 hav...
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 useles...
2019 Sep 12
2
Fw: Calling a LAPACK subroutine from R
On 11/09/2019 21:38, Berend Hasselman wrote: > The Lapack library is loaded automatically by R itself when it needs it for doing some calculation. > You can force it to do that with a (dummy) solve for example. > Put this at start of your script: > > <code> > # dummy code to get LAPACK library loaded > X1 <- diag(2,2) > x1 <- rep(2,2) > # X1;x1 > z <-
2012 Jul 24
1
Finding dynamic shared libraries loaded with a package
...age, 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, since it seems like a bit of a hack. For example, this code will load bitops, then unload the shared library and unload the package. library(bitops) # Show what's loaded .dynLib...
2007 Aug 03
2
How to properly finalize external pointers?
Dear R .Call() insiders, Can someone enlighten me how to properly finalize external pointers in C code (R-2.5.1 win)? What is the relation between R_ClearExternalPtr and the finalizer set in R_RegisterCFinalizer? I succeeded registering a finalizer that works when an R object containing an external pointer is garbage collected. However, I have some difficulties figuring out how to do that in an
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.
In the following code routine 'initaquaphy' is defined in Fortran, and dynamically loaded into R.: test.f: subroutine initaquaphy(odeparms) external odeparms double precision pars(19) common /myparms/pars call odeparms(19, pars) return end $ R CMD SHLIB Aquaphy.f gfortran -fpic -g -O2 -c test.f -o test.o gcc -std=gnu99 -shared
2009 Jul 27
3
[LLVMdev] llc - generation of native machine code
Hello! I am working with LLVM project to compile for specific processor (xPEC-processor from NetX chip, http://hilscher.com/ ). I have done support of this target successfully! Assembler code can be emitted 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
2009 Mar 16
4
[LLVMdev] n00b question: From module/bitcode to Mach-O dylib file directly?
> Hey Luke, > > Unfortunately, the 'state of the art' is that llc only really supports > emission of native assembly files (-filetype=asm) which can then be > assembled and linked with your native gas/ld. > > There is some source support for 'object file generation', exposed via > the -filetype=obj flag to llc, but it is not complete, and totally > broken
2009 Jul 27
0
[LLVMdev] llc - generation of native machine code
On Mon, Jul 27, 2009 at 8:25 AM, Rudskyy<tema13tema 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
2005 Jun 03
2
using so-library involving Taucs
Dear R developers, The trace of the hat matrix H~(n,n) is computed as follows: tr(H) = tr(BS^-1B') = tr(S^-1B'B) := tr(X) = sum(diag(X)) with B~(n,p), S~(p,p). Since p is of the order 10^3 but S is sparse I would like to employ Taucs linear solver ( http://www.tau.ac.il/~stoledo/taucs/ ) on SX = B'B. (Further improvement by implying a looping over i=1,...,p, calling
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
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
Hello, I just installed R-2.15.0 on windows XP and cannot load package tcltk2 (which I just downloaded from CRAN as tcltk2_1.2-1.zip; package install reported no problems): > library(tcltk2) Carico il pacchetto richiesto: tcltk Loading Tcl/Tk interface ... done Error : .onLoad failed in loadNamespace() for 'tcltk2', details: call: system("cat /etc/issue", intern = TRUE,
2008 Oct 30
1
Compiling R Packages
I am working on a SLES 10 cluster with R available on it. To better use my resources, I want to use Rmpi, but I am having a difficult time installing it. I have set the $R_LIBS variable correctly. The MPI libraries are available through the PGI compiler, but this R instance was compiled with GCC. The Rmpi package can be compiled and installed with %R CMD INSTALL Rmpi_0.5-5.tar.gz
2007 Jun 12
1
Cause of error message in cov function?
Hi all, I have written a script in R that simulates genetically informative data - it is posted on my website and available to the public. This is my first time to write a script for use by others and am learning that it isn't as easy as it seems. To the issue. My script runs fine on my machine and on a server I have access to, but a user has written me saying that it crashes the first time