Open MichaelChirico opened 4 years ago
May I please suggest inserting the following sentence into Sections 6.7 and 6.7.1 of the "Writing R Extensions" manual in order to make it easier to figure out how to link to the statistical subroutines.
See 6.16 Using these functions in your own C code and 8.1.1 Compiling against the R library for technical details.
===============
There appear to be some nontrivial differences about what is required to link to the various cumulative distribution function routines.
For instance, for pnormal, it is possible to link to libR.so using only the R.h and Rmath.h header files and get a working program.
But for pgamma, one needs to link to the libRmath library and use the line
lines in order to get a working program.
No evidence is provided for the claims, and usage in CRAN packages suggests that the claims are false. Perhaps they reflect quirks of a particular linker (more than one is on use on Solaris) with a non-standard build of R (a standard build does not have libR.so).
And in any case, we do not want to clutter up description of the API with how to use it.
Please do study the section 'BUGS" in the R FAQ.
Dear Brian,
Thanks for your email.
The links are internal links to your own documenation.
So your own documentation is evidence itself.
What more do you need?
The situation is certainly not unique to Solaris, which is a more robust version of Unix than is Linux.
Furthermore, the same gnu compiliers are used to build R in both Linux and Solaris. So the situation is common to all Unix installations of R.
Sincerely,
William Wheeler
--------------------------------------------------------------------------------
On Thu, 26 Jul 2012, r-bugs@<::CENSORED -- SEE ORIGINAL ON BUGZILLA::>-project.org wrote:
METADATA