close
Warning:
Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.
- Timestamp:
-
Jan 29, 2016, 9:05:23 AM (9 years ago)
- Author:
-
Pedro Gea
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v1
|
v2
|
|
6 | 6 | #!div style="width:15%; float:left; clear:none; margin-right:1em; background:#ffb; border:1px solid #b00; padding-left:1em; padding-right:1em" |
7 | 7 | [wiki:WikiStart Home] [[BR]] [[BR]] |
8 | | '''Software''' [[BR]] [wiki:Download Download] [[BR]] [wiki:Installation Installation] [[BR]] [wiki:Documentation Documentation] [[BR]] [wiki:Packages Packages] [[BR]] [[BR]] |
9 | | '''TOL Project''' [[BR]] [wiki:TolDevelopment Development] [[BR]] [wiki:TolPeople Contributors] [[BR]] [[BR]] |
10 | | '''Others''' [[BR]] [wiki:Rprojects R-Projects] [[BR]] [https://mmm.tol-project.org MMS] [[BR]] [wiki:TolGrid TOLGrid] |
| 8 | '''TOL''' [[BR]] [wiki:Software Software] [[BR]] [wiki:Download Download] [[BR]] [wiki:Installation Installation] [[BR]] [wiki:Packages Packages] [[BR]] [wiki:OTAN OTAN] [[BR]] [[BR]] |
| 9 | '''TOL Project''' [[BR]] [wiki:About About TOL] [[BR]] [wiki:Manuals Manuals] [[BR]] [wiki:Development Development] [[BR]] [wiki:Rprojects R-Projects] [[BR]] [[BR]] |
| 10 | '''Other Links''' [[BR]] [wiki:TracGuide Trac Guide] [[BR]] [wiki:WikiTree Wiki Tree] [[BR]] [https://mms.tol-project.org MMS] |
11 | 11 | }}} |
12 | 12 | {{{ |
13 | | #!div style="margin-left:20%; margin-right:0%; padding-left:2em; padding-right:2em" |
| 13 | #!div style="margin-left:20%; margin-right:20%; padding-left:2em; padding-right:2em" |
14 | 14 | {{{ |
15 | 15 | #!comment |
… |
… |
|
23 | 23 | Download and installation details are shown below: [#Installation] |
24 | 24 | |
25 | | == R-Packages == |
| 25 | == R Packages == |
26 | 26 | |
27 | 27 | Currently there are three R-packages: |
… |
… |
|
33 | 33 | === tolBasis === |
34 | 34 | |
35 | | {{{tolBasis}}} is the main package for using TOL from R. It is the basis on which TOL in R developments are supported. |
| 35 | {{{tolBasis}}} is the main package for using TOL from R. It is the basis on which ''TOL in R'' developments are supported. |
36 | 36 | |
37 | 37 | There is not necessary a TOL software installation to be used. |
… |
… |
|
55 | 55 | {{{tolKit}}} is a package with some TOL utilities adapted to be used in R as usual. |
56 | 56 | |
57 | | This package needs to the previous packages: {{{tolBasis}}} and {{{tolRlink}}}. |
| 57 | This package requires the previous packages: {{{tolBasis}}} and {{{tolRlink}}}. |
58 | 58 | |
59 | 59 | Current version imports TOL funcionts: {{{Estimate}}} and {{{CalcForecasting}}}. |
… |
… |
|
65 | 65 | |
66 | 66 | There are different ways to install these developments: |
67 | | * install the compiled packages (zip files for Windows) |
68 | | * download the source (tar.gz file) and compile it. |
69 | | |
70 | | The package {{{tolBasis}}} is already available at CRAN: [https://cran.r-project.org/web/packages/tolBasis/index.html tolBasis] and can be installed as usual: |
71 | | {{{ |
72 | | #!ruby |
73 | | install.packages("tolBasis") |
74 | | }}} |
| 67 | * as usual from CRAN repositories (currently only tolBasis is available), |
| 68 | * downloading and installing the compiled packages (zip files for Windows), |
| 69 | * downloading the source (tar.gz file) and compiling it locally. |
75 | 70 | |
76 | 71 | === Dependencies === |
… |
… |
|
91 | 86 | }}} |
92 | 87 | |
93 | | * {{{tolKit}}} only depends on: {{{tolLink}}} |
| 88 | * {{{tolKit}}} only depends on: {{{tolRlink}}} |
94 | 89 | |
95 | | === Installation from ZIP files (Windows) === |
| 90 | === Installation from CRAN === |
96 | 91 | |
97 | | --La mejor manera actualmente de instalar los paquetes en Windows es descargar los paquetes ya compilados e instalarlos en R. |
| 92 | The package {{{tolBasis}}} is already available at CRAN: [https://cran.r-project.org/web/packages/tolBasis/index.html tolBasis] and can be installed as usual: |
| 93 | {{{ |
| 94 | #!ruby |
| 95 | install.packages("tolBasis") |
| 96 | }}} |
98 | 97 | |
99 | | --Los paquetes en formato ZIP (con los binarios para Windows) se pueden descargar desde: |
100 | | * [export:tolp/Rprojects/tolBasis_1.0.zip tolBasis_1.0.zip] |
101 | | * [export:tolp/Rprojects/tolLink_1.0.zip tolLink_1.0.zip] |
102 | | * [export:tolp/Rprojects/tolKit_1.0.zip tolKit_1.0.zip] |
| 98 | === Installation from compiled packages (Windows) === |
103 | 99 | |
104 | | --Para instalar los archivos ZIP podemos usar la opción {{{"Instalar paquete(s) a partir de archivos zip locales..."}}} del menú {{{"Paquetes"}}}. |
| 100 | The compiled packages for Windows (ZIP files) can be downloaded from: |
| 101 | * [export:tolp/Rprojects/tolBasis_1.1.zip tolBasis_1.1.zip] |
| 102 | * [export:tolp/Rprojects/tolRlink_1.0.zip tolRlink_1.0.zip] |
| 103 | * [export:tolp/Rprojects/tolKit_1.1.zip tolKit_1.1.zip] |
105 | 104 | |
| 105 | To install them in R, can be use the option {{{"install package(s) from local zip files..."}}} from menu {{{"Packages"}}} or use R sentences as: |
| 106 | {{{ |
| 107 | #!ruby |
| 108 | # change <filename> for the route of each zip file |
| 109 | install.packages(<filename>, repos=NULL) |
| 110 | }}} |
106 | 111 | |
107 | 112 | === Installation from source === |
108 | 113 | |
| 114 | The packages can be installed from source using |
| 115 | {{{ |
| 116 | #!ruby |
| 117 | # change <package_url> for the url of each package |
| 118 | install.packages(<package_url>, repos=NULL, type="source") |
| 119 | }}} |
109 | 120 | |
110 | | --Para descargar el código utilizamos SVN: |
| 121 | The current urls of source files (tar.gz) are: |
| 122 | |
| 123 | * [https://www.tol-project.org/svn/tolp/Rprojects/tolBasis_1.1.tar.gz] |
| 124 | * [https://www.tol-project.org/svn/tolp/Rprojects/tolRlink_1.0.tar.gz] |
| 125 | * [https://www.tol-project.org/svn/tolp/Rprojects/tolKit_1.1.tar.gz] |
| 126 | |
| 127 | |
| 128 | For other versions see directly the folder: [https://www.tol-project.org/svn/tolp/Rprojects svn:Rprojects] |
| 129 | |
| 130 | |
| 131 | === Downloading source === |
| 132 | |
| 133 | SVN can be used for download the developping source of these packages: |
111 | 134 | |
112 | 135 | {{{ |
… |
… |
|
114 | 137 | }}} |
115 | 138 | |
116 | | --Cámbiese la ruta de destino por la que considere. |
| 139 | Change the destination folder for your choice. |
117 | 140 | |
118 | | --Para instalar los paquetes desde el código, estableceremos el directorio de trabajo con la ruta donde descargamos los paquetes |
119 | | y los instalaremos como sigue: |
| 141 | Remember that in order to compile {{{tolRlink}}} a compatible TOL installation is required. |
120 | 142 | |
121 | | {{{ |
122 | | #!ruby |
123 | | setwd("c:/users/<user>/svn/tolp/Rprojects") |
124 | | # Cambiese la ruta adecuadamente |
125 | | install.packages("tolBasis", repos=NULL, type="source") |
126 | | install.packages("tolLink", repos=NULL, type="source") |
127 | | install.packages("tolKit", repos=NULL, type="source") |
128 | | }}} |
129 | 143 | |
130 | | --Nótese que para compilar {{{tolLink}}} necesitamos una instalación válida (acorde a nuestro sistema) de TOL-GNU. |
131 | | |
132 | | --En la instalación de TOL-GNU asegúrese también de instalar las librerías y las cabeceras para C/C++. |
133 | | Éstas se buscarán en el directorio de instalación según la ruta especificada en la variable de entorno: {{{TOLGNU_ROOT}}}. |
134 | | Véase el archivo: {{{tolLink/src/Makevars}}} |
135 | | |