Bug #2326

Updated by Matthieu Decorde over 1 year ago

The FactoMineR package cannot be loaded with the library(FactoMineR) R command.

<pre>
*** caught segfault ***
address 0x5, cause 'memory not mapped'

Traceback:
1: dyn.load(file, DLLpath = DLLpath, ...)
2: library.dynam(lib, package, package.lib)
3: loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
4: asNamespace(ns)
5: namespaceImportFrom(ns, loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]), i[[2L]], from = package)
6: loadNamespace(package, c(which.lib.loc, lib.loc))
7: doTryCatch(return(expr), name, parentenv, handler)
8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
9: tryCatchList(expr, classes, parentenv, handlers)
</pre>

h3. diagnostic

A so library is missed loaded from a wrong library directory

Call the R commands within /usr/lib/TXM/R :
<pre>
library.dynam()
.libPaths()
find.package()
</pre>

On Mac OS X & Windows 10: all the library paths point to TXM installation directory

h3. Solution

Some paths of the /usr/lib/TXM/R/etc/Renviron point to either the R system libraries or the user R libraries

Comment the 43th and 49th line of the Renviron file.

Back