[Rd] Library not loaded: /usr/local/lib/libquadmath.0.dylib

2014-09-02 Thread Xiao He
Hi all, I tried to load a package which includes a shared object on one of my Macs, and I got an error message below, which suggests that the file " libquadmath.0.dylib" is missing in the /usr/local/lib folder. On my other Mac however, I have no problem loading the package, and the file " libquadm

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

2013-05-23 Thread Xiao He
another computer and run it, will it know to link to the Fortran included in R? Thanks! -Best, Xiao On Thu, May 23, 2013 at 5:06 PM, Xiao He wrote: > Thanks for the reply Simon, > > I have a follow-up question: > > So after I run the first code you suggested on a computer, the

[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,

Re: [Rd] invalid operands of types ‘SEXPREC*’ an d ‘R_len_t’ to binary ‘operator/’ wit h Rcpp.

2013-05-14 Thread Xiao He
. the function sequence() basically takes an integer, and produce a vector of consecutive integers starting from 1 to the provided value. Best, Xiao On Tue, May 14, 2013 at 6:39 AM, Dirk Eddelbuettel wrote: > > On 13 May 2013 at 21:42, Xiao He wrote: > | Dear R-Developers, > | > |

[Rd] invalid operands of types ‘SEXPREC*’ and ‘R_len_t’ to binary ‘operator/’ with Rcpp.

2013-05-14 Thread Xiao He
Dear R-Developers, I just started learning how to use Rcpp. Earlier while using it, I encountered an error as shown below: file74d8254b96d4.cpp: In function ‘Rcpp::NumericVector foo(Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::NumericVector, Rcpp::Function, Rcpp::Function)’: file74d8254b96d4.c