Hey,
effe zeggen wat ik niet snap in de README
This package uses R as a plugin to Gnumeric. To use it, you will need (no surprises)
Gnumeric, and
R
and you will need to have R in the form of a shared library, $R_HOME/bin/libR.so. To do this, reconfigure and recompile R using the commands
./configure --enable-R-shlib any other arguments
make
heb Gnumeric en R dus beiden from source geinstalleerd en gecompileerd ook, maar wat bedoelt men eigelijk met " any other arguments" (heb gewoon
./configure --enable-R-shlib gedaan en dat gaf geen fouten, maar hier moest wss wel nog iets bij)
...
At this point, let's assume you have the Gnumeric source and a running Gnumeric. You will need to tell the configuration script for this R package where the directory containing the Gnumeric source is located. The directory of interest is the one containing the src/, plugins/ and po/ directories of the gnumeric source. If you download the Gnumeric source and simply un-tar it, the resulting top-level directory is the one we need.
There are two ways to specify this location. The first is by setting the environment variable GNUMERIC_DIR to the fully qualified name of the that directory. The second is to specify it as a command line argument to the configure script. This is done as the value of the --with-gnumeric argument of the configure script. Since configure is invoked via the R INSTALL command, passing an argument to it is slightly more complicated. This is done as
R CMD INSTALL --configure-args='gnumeric/directory/' RGnumeric
bovenstaande commando snap ik dus niet: wat moet ik invullen ipv "directory"
ik had het volgende gedaan:
root@annelies-laptop:~# R CMD INSTALL --configure-args='gnumeric/home/annelies/R-install/' RGnumeric
gzip: RGnumeric: unexpected end of file
ERROR: cannot extract package from 'RGnumeric'
root@annelies-laptop:~#
The compilation also requires access to the file named gnomesupport.h that is installed with the gnome libraries. The configuration script attempts to find this in a variety of different ways. As a last resort, it explicitly looks for it in the directory /usr/local/lib/gnome-libs/include/. If it is not found, the configuration will fail. In that case, you can specify the directory in which it is available using the environment variable EXTRA_INCLUDES.
Hier weet ik dus niet waar en hoe ik die gnomesupport zou moeten bij vermelden. (staat in /usr/lib)
Installation
At this point, the plugin library is ready to be used in Gnumeric. However, you must tell Gnumeric of its existence. To do this, you have to decide where to install the plugin library so that gnumeric will find it when it starts. You essentially have two choices:
* your home directory, for personal use
* the system-wide plugin directory for all users, typically /usr/local/lib/gnumeric/0.64/plugins
The default is to put it in your home directory, specifically in the directory .gnumeric/version-number/plugins/R. To install it in a different place, specify the target directory by setting the environment variable INSTALL_DIR.
ik dacht dat ik hier de file plugin.xml moest kopieren in de directory gnumeric.1.7.0/plugins/R , maar dat is blijkbaar de taak van het cleanup script? wat was dan de bedoeling in bovenstaande stap?
The cleanup script will copy the file plugin.xml in this distribution to the installation directory where gnumeric looks for plugins. It will also create a symbolic link to the shared library in the installed R library
To perform this installation as part of the R installation, invoke R CMD INSTALL with the -c argument.
R CMD INSTALL -c RGnumeric_0.1-0.tar.gz
opnieuw snap ik het commando eigelijk niet. Het geeft in ieder geval foutmeldingen.
In ieder geval bedankt voor de moeite om het te lezen.
grtz
Annelies