Displaying 20 results from an estimated 9000 matches similar to: "R scripts slowing down after repeated called to compiled code"
2006 Dec 12
1
include libraries for C code called from R
I hope that someone on this list can help me with this issue. I have searched
through all of the documentation and mail archives for a solution, but have
been unable to find an answer that addresses my particular problem directly.
Suppose I am writing some C code that I want to access from R through the .C
function. As part of the C function, I want to include an external C library,
such as the
2007 Jan 04
1
Parameter changes and segfault when calling C code through .Call
I am experiencing some odd behavior with the .Call interface, and I am hoping someone out there can help me with it. Below is a simple example (in that there are R packages that do exactly what I want), but this code illustrates the problem. Thanks in advance for any help you can provide.
Suppose I want to compute the log density of a multivariate normal distribution using C code and the gsl
2006 Dec 12
1
Undefined symbol when trying to dyn.load a shared object
I hope that someone reading this list can offer some suggestions on how I can incorporate external C libraries in C functions that I want to call from R. I have gone through all of the documentation, help files and mailing list archives and have not been able to find a satisfactory solution.
I have constructed a simple example of the problem, since my "real" program is much more
2007 Sep 16
1
Using gsl libraries in R packages
I have some compiled C code that I call from R, and I would like to
distribute this code as an R package through CRAN. In the C code, I use the
gsl numerical libraries, mainly for the BLAS interface, some linear algebra
functions, and some optimization routines. As I prepare this code to
conform to the specs for R packagtes, I am wondering if there is a
restriction on the use of external
2006 Dec 24
2
FW: Passing lists from R to C, extracting elements, and sending lists back again
Thank you to everyone who responded to my previous post regarding the integration into R of C programs that use external libraries. I have another issue that I simply have not been able to figure out using documentation, list archives, and so forth.
I have data that is stored in R lists. I would like to pass the list to C code using the .Call function, perform mathematical operations on the
2005 Dec 25
4
Portability and Memory Issues for R-package
I have an upcoming JASA paper with an iid sampling algorithm for Bayesian Generalized Linear models (e.g., Logit, Poisson Regression, and Conditional Logit models with multivariate normal priors). At this point, I have implemented the algorithms in C and hope to make the functions and corresponding source code available through an R package. I have successfully created the code necessary to
2017 Sep 13
0
(no subject)
On 13/09/2017 5:23 AM, Brayford, David wrote:
> When I try to install gsl in R I get the error Need GSL version >= 1.12 . However, I have version 2.3 of gsl installed on the system, which is picked up earlier in the configure process (see below). Is it possible for someone to fix this error in the configure script?
>
> checking for gsl-config...
2017 Sep 13
0
(no subject)
On 13/09/2017 9:10 AM, David Brayford wrote:
> Hi Duncan,
>
> The output of gsl-config --version
> 2.3
>
> The output of gsl-config --cflags
> -I/lrz/sys/libraries/gsl/2.3/include
>
> The output of gsl-config --libs
> -L/lrz/sys/libraries/gsl/2.3/lib -lgsl -lgslcblas -lm
>
> gsl_version.h cat output
> #define GSL_VERSION "2.3"
> #define
2012 Jul 24
1
Trouble with Installing R Package gsl
Dear R users:
I have a problem when installing the R package *gsl*. The procedure is as
follows:
(1) Since it needs a GSL vesion >=1.12, and the GSL library on the serve I
use is too old, I download GSL 1.15 and install it in my own account, such
as $HOME/local/gsl. Because I do not have root access, so it cannot be
installed in standard folder.
(2) Then I download the source code of R
2010 Oct 30
1
Trouble installing gsl wrapper
Hi,
I'm trying to install the gsl wrapper source code
(http://cran.r-project.org/src/contrib/gsl_1.9-8.tar.gz) on a Linux
system (OpenSuse 11.1), but encountering the following problem. I've
already installed 'gsl' version 1.14
(ftp://ftp.gnu.org/gnu/gsl/gsl-1.14.tar.gz) on the system. What's
missing? Thanks a lot...
> R CMD INSTALL gsl
* installing to library
2017 Sep 13
4
(no subject)
When I try to install gsl in R I get the error Need GSL version >= 1.12 . However, I have version 2.3 of gsl installed on the system, which is picked up earlier in the configure process (see below). Is it possible for someone to fix this error in the configure script?
checking for gsl-config... /lrz/sys/libraries/gsl/2.3/bin/gsl-config
checking if GSL version >= 1.12... checking for gcc...
2010 Feb 28
1
Problem with gsl package
Hi all,
I am new to R and am writing after having contacted Robin Hankin, who
maintains the R gsl wrapper.
I am trying to use an AFNI (neuroimaging analysis) program that depends
on the R gsl package. When I try to use the script I wrote, I get an
error that led me to suspect the gsl package was a culprit. When I do
library("gsl") within R, I get:
Error in dyn.load(file, DLLpath
2014 Oct 01
1
gsl package on mavericks
hello
I maintain the gsl R package, and many users have recently reported that
the package
does not install from source under macosx 10.9 ("mavericks").
Users typically install the gnu GSL library and are able to compile and run
a small "hello world" program which executes some of the Bessel functionality
of the library; but under mavericks the configure script (which uses
2007 Nov 22
1
package gsl assumes incorrect gcc version during install (PR#10451)
Full_Name: Levi Waldron
Version: 2.5.1
OS: Ubuntu Gutsy
Submission from: (NULL) (206.248.157.88)
I installed libgsl0-dev then tried to install the gsl cran package,
unsuccessfully (see output below). As a workaround I created a symbolic link to
/usr/bin/gcc-4.2, ie:
sudo ln -s /usr/bin/gcc-4.1 /usr/bin/gcc-4.2
The correct behavior of the gsl package should be to use the executable
2016 Nov 01
2
libgsl.so.0
On 01/11/16 21:08, Kirill M?ller wrote:
> Did you reinstall the gsl package [1]?
Apparently not. I did a complete update.packages() which reinstalled a
great number of packages (I have a great number in my personal library).
There were complaints about 4 packages, one of which was "copula", but
"gsl" was not one of them.
I would have *thought* that if "gsl"
2013 Mar 11
1
compiling C code using headers from another R package
I am developing an R package, eiR, which depends on another C library,
GNU scientific library (GSL). In order to make life easier for the user,
it would be nice to not have this as an external dependency, thus I
would like to wrap this library in another R package, say GSLR for
example. Thus far I know how to do this. The C code in eiR requires the
.so library and the header files from GSL
2012 Aug 17
2
R package compilation: files in src directory should be ignored if C library is not available
I have written an R package which contains C source code (in the directory pkg/src).
Only a subset of the functions in the pkg/R directory contain a .C() call to the functions in the pkg/src directory. The rest of the package will still work and be useful without the functions containing a .C() call.
To compile the code in pkg/src requires the GSL library. This is detailed in the
2002 Apr 16
1
Problem with dyn.load()
I tried to dynamically load a c++ function. Everything seems to be OK
when dyn.load() is executed but then I get this error
Error in .C("integral", sumInMean, sumInVar, boundError,
numberSampleClasses, :
C/Fortran function name not in load table
The code of the function is something like this:
#include <cmath>
extern "C" {
#include
2009 Jan 06
1
Installation of R package gsl and its corresponding GSL library
Hi
I want to install the R package gsl, which is a wrapper to the library GSL.
Installation fails as it seems that I did not install the right GSL library:
* Installing *source* package 'gsl' ...
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of
2006 Jun 23
3
problem installing gsl package under Ubuntu Breezy Badger
I am trying to install the gls package (a wrapper for GNU scientific library
special functions) package under Ubuntu 5.10. I have gls-bin (the debian GNU
Scientific Library binary package). When I try to install the R package, I
receive the following.
> install.packages("gsl",dependencies=T)
Warning in install.packages("gsl", dependencies = T) :
argument