Re: [Rcpp-devel] Rcpp catching a domain error

2014-12-12 Thread Devin
ical operation equal to a string. I also tried: int test() { gsl_set_error_handler_off(); if(gsl_sf_hyperg_2F1(1,1,1.1467003,1) == NAN){ std::cout << "Error" << std::endl; } return 0; } ... but the if-branch gets ignored. How can I achieve that the program runs through the if

[Rcpp-devel] Rcpp catching a domain error

2014-12-11 Thread Devin
uot;Domain Error occurred!" << std::endl; } return 0; } This seems to be wrong, since it still causes an abortion error in RStudio. I appreciate any input Thanks Devin ___ Rcpp-devel mailing list Rcpp-devel@lists.r

Re: [Rcpp-devel] Compiler errors with RcppGSL

2014-11-13 Thread Devin Heer
ing the environment variable, RcppGSL still searches at this particular place, which is obviously the place the compiler is expecting the GSL library. Where does the g++ compiler take that information from? How I can adjust for that second location? Regards Devin On Thu, Nov 13, 2014 at

Re: [Rcpp-devel] Compiler errors with RcppGSL

2014-11-12 Thread Devin Heer
Eddelbuettel wrote: > > Hi Devin, > > On 12 November 2014 at 15:13, Devin Heer wrote: > | Thus, I would really like to get the RcppGSL package up and running. I > have > | downloaded the GSL library and saved it in the same folder where the > header > | file Rcpp.h is lo

[Rcpp-devel] Compiler errors with RcppGSL

2014-11-12 Thread Devin Heer
hyperg_2F1 into Rcpp? I am working on OS Windows 8, with only beginner's knowledge of C++ Feedback is highly appreciated. Devin ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel