Task #2954

Mis à jour par Matthieu Decorde il y a presque 5 ans

The R package loading error messages are miss leading.

<pre>

When org.txm.statsengine.core.StatException: ** Error while computing correspondence analysis: FactoMineRCA16 <- FactoMineR::CA(LexicalTable13[,colSums(LexicalTable13) != 0], graph=FALSE); ** R error: "Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/TXM-0.8.1/plugins/org.txm.statsengine.r.core.linux_1.0.0.202006290905/res/linux64/library/leaps/libs/leaps.so':
libgfortran.so.3: cannot open shared object file: No such file or directory

et
Caused by: org.txm.statsengine.r.core.exceptions.RException: ** R error: "Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/TXM-0.8.1/plugins/org.txm.statsengine.r.core.linux_1.0.0.202006290905/res/linux64/library/quantreg/libs/quantreg.so':
libgfortran.so.3: cannot open shared object file: No such file or directory
</pre>

TXM is trying to fix the packages: packages :
<pre>
The {0} package is not installed. Trying to install it now...
</pre>

<pre>
The {0} package was not installed. Please install it manually:
* Run R
* and execute install.packages("{1}")
</pre>

h3. Solution

The installation test was wrong (it was trying to load the package to conclude the package is not installed.

Replace the "library(pkg)" call with the "installed.package('pkg')" call.

Retour