Instalation fonction zeta pour R
Bonjour,
Je cherche à réaliser une analyse à l'aide d'une fonction réalisée par Aaron Clauset. Mais je n'arrive pas à installer la fonction en question.
Il y a 3 fichiers :
Makefile
zeta_func
zeta.R
Voici le peu d'informations données par l'auteur :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| # The normalizing constant is evaluated by a (comparatively crude) call
# to the GSL, embodied in a stand-alone piece of C. This must be compiled
# and put someplace R can execute it. It can be found in a file called
# zeta-function.tgz, which should accompanying this code.
# To install it on a Unix system, first make sure GSL is installed.
### > tar xzf zeta-function.tgz
### > cd zeta-function
# At this point, you need to edit the file "Makefile" to give the location of
# the GSL, which on my system is /sw/lib (for the library) and /sw/include
# (for the included files). Then
### > make
### > mv zeta_func yourexecutablepath
# where "yourexecutablepath" is a directory where you can put executable
# files. Then edit the variable "zeta_function_filename" in this file,
# below, to give the full path to the executable program zeta_func.
# This is not the world's slickest installation mechanism, no.
# The location of the external program calculating the zeta function
# Used by zeta_function_once.gsl
zeta_function_filename <- "~/bin/zeta_function"
### EDIT THIS LOCATION!!! #### |
D’après ce que j'ai compris, il y a une librairie (GSL) qu'il faut relier au fichier de la fonction. Pour que GSL puisse lire la fonction, il faut l'éditer avec le fichier Makefile. Mais je ne sais pas du tout comment faire avec R.
Si quelqu'un comprend quelque chose, pourrait-il m'indiquer la marche à suivre?
Cordialement
SOSA Sebastian