gmake and then run R CMD INSTALL.
On Linux, GNU make is the default.
$R_HOME/bin/libR.so.
You can build this by downloading the R source and issuing the
following commands
tar zxvf R-1.2.2.tar.gz cd R ./configure --enable-R-shlib make
jri.h and
friends), a library nptemplate.so and the Netscape
version of javah, a tool for creating the C-level glue
from Java classes.
I have also found this as an RPM but have not used it.
R INSTALL -c SNetscapeBut before that will work however, you will have to tell the configuration script where to find the Netscape SDK and potentially what set of files in the SDK are appropriate for your machine.
If the Plugin SDK is not located as a sibling directory of the SNetscape package, then you have to help the configuration find it. You can do this with an argument to configure as
--with-netscape-sdk=/path/to/PluginSDK30b5To pass this to configure via the R INSTALL command use
R INSTALL -c --configure-args='--with-netscape-sdk=/path/to/PluginSDK30b5' SNetscape
This can be complicated for a variety of different reasons. A potentially simpler alternative is to set this value as an environment variable before calling INSTALL. The environment variable in question is NETSCAPE_SDK_DIR and therefore, the installation can be done as
NETSCAPE_SDK_DIR=/path/to/PluginSDK30b5 ; R INSTALL -c SNetscapeYou can turn off the compilation of the graphics device plugin. This is done by specifying the argument
--enable-graphics=no.
For Linux (and HP and IRIX) there is only one
choice. For SunOS, there are three choices. The configuration
script tries to match your current version to one of the directories
listed in the PluginSDK30b5/bin directory. If it fails to find
a match, it uses SunOS5.4. If this is incorrect, specify the
correct value (the name of the directory) via the
--with-platform argument for configure or by
setting the PLATFORM environment variable before calling
configure.
./configure --with-platform=SunOS5.3
export PLATFORM=SunOS5.3; ./configure
R CMD check will not work as that
assumes the code is loaded into R, not vice-versa. Instead, you can
check the examples in examples/ directory that is installed with the
package. To do this, you will need to restart Netscape in order to
load the plugin. Before doing this, you will also need to set the
environment variable LD_LIBRARY_PATH to contain the directory
$R_HOME/bin, wherever R_HOME is. You can find this
information by invoking the command R RHOME
Now, run Netscape and open the test URL. Clicking on the Rnorm(10) button should update the contents of the other frame and verify that things are working.