#1 Le 07/05/2006, à 19:22
- pépère
Gnumeric et R
Bonjour ubunteros !
Aujourd'hui, j'ai installé gnumeric !
Et, ô bonheur, il est tout aussi léger, rapide et efficace que son frère : abiword !
Une bonne façon de remplacer le module correspondant d'open office, qui est un petit peu long à démarrer sur des petites config.
Trois questions me viennent :
1) pourquoi ces 2 logiciels ne sont pas par défaut dans gnome ? Même si je préfère gnome, je trouve que kde, intégrant tout une gamme de logiciels de ce type créés et intégrés au bureau, "s'assume" plus que gnome. Gnome a-t-il honte de ses propres applications ? Où y a-t-il une bonne raison à ça ? Même question à propos d'Epiphany bien sûr, qui est devenu mon navigateur par défaut très rapidement après installation : moins d'extensions bien sûr, mais diablement plus rapide !
2) il existe aussi un "gnome data base". Existe-t-il un gnome impress" ? Ainsi, la gamme serait assez complète...
3) j'en viens au sujet de mon post : j'ai lu qu'il existe un programme permettant d'utiliser R via gnumeric et gnumeric via R. Pour rappel, R est un logiciel de statistiques, que j'utilise constamment.
J'ai du mal à me faire une idée des possibilités offertes par le complage de ces 2 applications. Quelqu'un a-t-il déjà essayé ? Si oui, pourrait-il me décrire les incroyables choses qu'il arrive à en faire ? Le comble du luxe serait qu'il me dise aussi quoi faire du fichier RGumeric.tar.gz que j'ai téléchargé sur ce site : http://www.omegahat.org/RGnumeric/
Merci d'avance.
Dernière modification par pépère (Le 07/05/2006, à 19:47)
Contre la récupération politicienne d'Ubuntu.
Hors ligne
#2 Le 25/05/2006, à 16:07
- geantick
Re : Gnumeric et R
j'allais mettre le même genre de post car je viens aussi de récupèrer le gunzip ^^
sur le site officiel il y a çà pour l'install
Compilation
This package uses R as a plugin to Gnumeric. To use it, you will need (no surprises)Gnumeric, and
Rand 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
makeTo install this package, you will also need the source code for gnumeric. I have used version 0.64 for the original implementation and, more recently, versions 1.0.1, 1.0.8 and 1.0.10. The plugin may work with earlier versions, but there is not guarantee. We would appreciate hearing of any problems and successes (omega-devel@omegahat.org). Gnumeric has its own dependencies which we will not describe here.
You need the source code for Gnumeric since a plugin needs access to header files that are not installed when Gnumeric is installed on your machine. Note that you must ensure that the Gnumeric source corresponds to the version that you run. Ideally, you should download the most recent version of Gnumeric and build and install it from source. Not only will you need the source of Gnumeric, but also its gnumeric-config.h file which is generated when you configure the source for building.
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
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.
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/pluginsThe 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.
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
At this point, Gnumeric should be able to see the plugin.
Activating the Plugin
To activate the plugin, you need to start Gnumeric. Before doing this however, make certain that your LD_LIBRARY_PATH environment variable includes the directory in which libR.so is located. This is in $R_HOME/bin/ and you can find the value of R_HOME via the commandR RHOME
Now you are ready to run Gnumeric and activate the plugin. Start Gnumeric by issuing the command gnumeric. Then, click on the Tools menu and select Plug-ins.... This dialog window allows you to scroll through the list of available plugins, the top component showing the already active ones and the lower component showing the currently inactive ones. If the entry R Plugin is not in the Active plugins box, click on it in the Available inactive plugins box and then click the Activate plugin button to the right. If all goes well, the R Plugin entry should now be in the top component of the window indicating it is active. Check the terminal console for any error messages and look at the FAQ for how to deal with them. Please note that you will only need to do activate the plugin once.
Testing the Plugin
To test the plugin, you can open one of the files in the examples/ directory of this distribution. These are installed in the examples/ directory. You will need to set the environment variable R_GNUMERIC_PROFILE to ExampleProfile in the examples/ directory of the installed library. Please read QuickOverview.
Last modified: Fri Nov 15 09:38:39 UTC 2002
je ne vois pas vraiment ce qu'ils veulent .
soit A=B , si l'on ajoute A de chaque cotés => 2A=B+A , on soustrait 2B de chaque coté => 2A-2B=A-B <=> 2(A-B)=1(A-B)
en simplifiant 2=1 ! et voilà. Mais 0/0 çà fait combien?
Hors ligne
#3 Le 25/05/2006, à 17:38
- pépère
Re : Gnumeric et R
Les grands esprits se rencontrent !!
Enfin, grands esprits, on arrive mm pas à installer ce petit plugin, alors...
De ce que je comprend : il nous faudrait les sources de gnumeric (mais je ne comprend pas très bien ce qu'il faut en faire), spécifier à R où elles se trouvent sur l'ordi, puis taper R CMD INSTALL -c RGnumeric_0.1-0.tar.gz pour installer...
La dernière étape devrait aller... Mais que fait-on avec les souces de gnumeric ? je les ai télécharger sur le site (c'est un fichier tar.gz je crois), mais à partir de là, je suis bloqué...
Pfff, connais vraiment rien à linux moi... C'est un des revers de cette distribution : tellement simple que dès que ça se complique, on est foutu !
Heureusement, il y a ce forum... Mais c'est un truc assez spécialiser ce qu'on demande... C'est pour ça que j'ai pas trop insisté quand j'ai vu que personne ne répondait...
Enfin, si qq'un pouvait nous expliquer la procédure à suivre, ça serait génial !
Croisons les doigts...
Contre la récupération politicienne d'Ubuntu.
Hors ligne