Re: [Rd] Using a shared object without installing a library required by the object.

2013-05-23 Thread Xiao He
Oops, Sorry, did not reply-all: Thanks for the reply Simon, I have a follow-up question: So after I run the first code you suggested on a computer, the shared object will use the Fortran run-time included in R. Does this code change the shared object itself? Meaning if I send this object to yet

Re: [Rd] Using a shared object without installing a library required by the object.

2013-05-23 Thread Simon Urbanek
On May 23, 2013, at 4:18 PM, Xiao He wrote: > Dear all, > > I have a C++ code. To create a shared object from this particular code, I > had to install a Fortran library on my computer (Mac). The compiled code > runs fine on my computer. However, if I try to dyn.load() said shared > object on a

Re: [Rd] Minimal build of R ...

2013-05-23 Thread peter dalgaard
On May 23, 2013, at 23:07 , Jony Hudson wrote: > Hi, > > I'm making some progress with this, but have hit a sticking point and am > looking for a hint. Most of the compilation seems to be going ok, after some > liberal use of f2c, but I'm getting compile errors in src/main/connections.c : > >

Re: [Rd] Minimal build of R ...

2013-05-23 Thread Jony Hudson
Hi, I'm making some progress with this, but have hit a sticking point and am looking for a hint. Most of the compilation seems to be going ok, after some liberal use of f2c, but I'm getting compile errors in src/main/connections.c : connections.c:926:43: error: use of undeclared identifier 'SS

[Rd] Using a shared object without installing a library required by the object.

2013-05-23 Thread Xiao He
Dear all, I have a C++ code. To create a shared object from this particular code, I had to install a Fortran library on my computer (Mac). The compiled code runs fine on my computer. However, if I try to dyn.load() said shared object on a computer that does not have the Fortran library installed,

[Rd] Code compilation: Drop certain statements in a function before calling it multiple times?

2013-05-23 Thread Henrik Bengtsson
Hi, I make heavy use of verbose statements in my code, verbose output that can be enabled/disabled via an argument. Here is a dummy example: foo <- function(n=10, verbose=FALSE) { res <- 0; for (k in 1:n) { if (verbose) cat("Iteration ", k, "...\n", sep=""); res <- res + k; if

[Rd] minor typo in docs for 'sort'

2013-05-23 Thread Enrico Schumann
Dear all, on the help page for '?sort': 'Method "shell" uses Shellsort ([...] from Sedgewick (1996))' but in the references it is Sedgewick (1986). 1986 seems correct: http://dx.doi.org/10.1016/0196-6774(86)90001-5 Thank you, Enrico -- Enrico Schumann Lucerne, Switzerland http://enrico