Je souhaite faire une ACP à l'aide du package Factoshiny mais je ne parviens pas à le charger.
> install.packages("FactoMineR")
Error in install.packages : Updating loaded packages
Restarting R session...
> install.packages("FactoMineR")
essai de l'URL '
https://cran.rstudio.com/bin/macosx/contrib/4.1/FactoMineR_2.4.tgz'
Content type 'application/x-gzip' length 3755097 bytes (3.6 MB)
==================================================
downloaded 3.6 MB
The downloaded binary packages are in
/var/folders/8c/y3c0b0j54tj4s_y02c_q39_m0000gn/T//RtmpBhXPHB/downloaded_packages
> install.packages("Factoshiny")
essai de l'URL '
https://cran.rstudio.com/bin/macosx/contrib/4.1/Factoshiny_2.4.tgz'
Content type 'application/x-gzip' length 344382 bytes (336 KB)
==================================================
downloaded 336 KB
The downloaded binary packages are in
/var/folders/8c/y3c0b0j54tj4s_y02c_q39_m0000gn/T//RtmpBhXPHB/downloaded_packages
> install.packages("missMDA")
essai de l'URL '
https://cran.rstudio.com/bin/macosx/contrib/4.1/missMDA_1.18.tgz'
Content type 'application/x-gzip' length 434543 bytes (424 KB)
==================================================
downloaded 424 KB
The downloaded binary packages are in
/var/folders/8c/y3c0b0j54tj4s_y02c_q39_m0000gn/T//RtmpBhXPHB/downloaded_packages
> install.packages("FactoInvestigate")
essai de l'URL '
https://cran.rstudio.com/bin/macosx/contrib/4.1/FactoInvestigate_1.7.tgz'
Content type 'application/x-gzip' length 264074 bytes (257 KB)
==================================================
downloaded 257 KB
The downloaded binary packages are in
/var/folders/8c/y3c0b0j54tj4s_y02c_q39_m0000gn/T//RtmpBhXPHB/downloaded_packages
> temp = read.csv("2_ans_varquant.csv", header = TRUE, row.names = 1, sep = ",", check.names = FALSE)
> library("FactoMineR")
> library("missMDA")
> library("FactoInvestigate")
> library(Factoshiny)
Le chargement a nécessité le package : shiny
Le chargement a nécessité le package : ggplot2
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Erreur : le chargement du package ou de l'espace de noms a échoué pour ‘Factoshiny’ :
.onLoad a échoué dans loadNamespace() pour 'tcltk', détails :
appel : dyn.load(file, DLLpath = DLLpath, ...)
erreur : impossible de charger l'objet partagé '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so, 0x000A): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so
Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libX11.6.dylib' (no such file), '/Users/madialenchevalier/lib/libX11.6.dylib' (no such file), '/usr/local/lib/libX11.6.dylib' (no such file), '/usr/lib/libX11.6.dylib' (no such file), '/lib/libX11.6.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/
De plus : Message d'avis :
Dans system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
l'exécution de la commande ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' renvoie un statut 1
> Factoshiny(temp)
Erreur dans Factoshiny(temp) :
impossible de trouver la fonction "Factoshiny"
> library(FactoMineR)
> library(missMDA)
> library(FactoInvestigate)
> library(Factoshiny)
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Erreur : le chargement du package ou de l'espace de noms a échoué pour ‘Factoshiny’ :
.onLoad a échoué dans loadNamespace() pour 'tcltk', détails :
appel : dyn.load(file, DLLpath = DLLpath, ...)
erreur : impossible de charger l'objet partagé '/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so, 0x000A): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1/Resources/library/tcltk/libs/tcltk.so
Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file), '/Library/Frameworks/R.framework/Resources/lib/libX11.6.dylib' (no such file), '/Users/madialenchevalier/lib/libX11.6.dylib' (no such file), '/usr/local/lib/libX11.6.dylib' (no such file), '/usr/lib/libX11.6.dylib' (no such file), '/lib/libX11.6.dylib' (no such file), '/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home/jre/lib/
De plus : Message d'avis :
Dans system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
l'exécution de la commande ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' renvoie un statut 1
D'ailleurs, ce script s'exécute sans problème sur mon autre ordinateur, mais pas moyen de le faire passer sur celui-ci même après avoir retélécharger tous les packages.