Bug #2099

Updated by Matthieu Decorde about 4 years ago

During the TXM Debian installation, TXM stops because FactoMineR needs R 3.3.2.

h3. hypothesis
Does the fetched FactoMineR sources version depend on R version ?

Test: install FactoMineR using R 3.0.2 (Ubuntu 14.04 default version). FactoMineR should ask R 3.3.2

Test result FROM WINDOWS: result: when called from R 3.1 "install.packages("FactoMineR", repos="http://cran.rstudio.com/"), the function will try to find out the packages in https://cloud.r-project.org/bin/windows/contrib/3.1/ :
<pre>
> install.packages("FactoMineR", repos="http://cran.rstudio.com/")
Installing package into 'C:/Users/màtté/Documents/R/win-library/3.1'
(as 'lib' is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/FactoMineR_1.32.zip'

Content type 'application/zip' length 3544346 bytes (3.4 Mb)
opened URL
downloaded 3.4 Mb

package 'FactoMineR' successfully unpacked and MD5 sums checked
</pre>

Test result FROM LINUX: The https://cloud.r-project.org/src/contrib contains only the last version of packages and there is no sub-directories per version that contains older version of packages.
<pre>
> install.packages("FactoMineR")
Installing package into ‘/home/alavrent/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
--- SVP sélectionner un miroir CRAN pour cette session ---
Avis : impossible d'accéder à l'index de l'entrepôt https://cloud.r-project.org/src/contrib
Message d'avis :
package ‘FactoMineR’ is not available (for R version 3.0.2)
</pre>

h3. Solution 1

Install R 3.3.2 and restart TXM installation

h3. Solution 2

Install a FactoMineR compatible with the current R version.
→ use another package repository ?
→ use an install.packages option to use a certain version of FactoMineR ?

Versions table:
<pre>
OS R FactoMineR
12.04 2.14.1 <= 1.33
14.04 3.0.2 <= 1.33
16.04 3.2.3 <= 1.33
16.10 3.3.1 >= 1.34
</pre>

The install.packages has no option to select the version to install.

To install a specific package one must give the exact path to the package :
<pre>
factourl <- "https://cran.r-project.org/src/contrib/Archive/FactoMineR/FactoMineR_1.33.tar.gz"
install.packages(factourl, dependencies=FALSE, repos=NULL, method="wget", type="source");
</pre>
But with this last instruction, the dependencies are not installed:
<pre>
factourl <- "https://cran.r-project.org/src/contrib/Archive/FactoMineR/FactoMineR_1.33.tar.gz"
install.packages(factourl, dependencies=FALSE, repos=NULL, method="wget", type="source");

</pre>

Back