problème pour charger le package Factoshiny alors qu'il est installé

Visto 664 veces
Saltar al primer mensaje no leído

Madialen Chevalier

no leída,
25 ene 2022, 11:09:4825/1/22
a FactoMineR users
Bonjour,

Je souhaite faire une ACP à l'aide du package Factoshiny mais je ne parviens pas à le charger.

Voici mon script:


# si besoin installer les packages suivants

install.packages("FactoMineR")
install.packages("Factoshiny")
install.packages("missMDA")
install.packages("FactoInvestigate")

# se placer dans le bon repertoire (session - set working directory - choose directory ou control + maj + h)

# charger le jeu de données

temp = read.csv("2_ans_varquant.csv", header = TRUE, row.names = 1, sep = ",", check.names = FALSE)

# lancement

library(FactoMineR)
library(missMDA)
library(FactoInvestigate)
library(Factoshiny)
Factoshiny(temp)


Et voici le message d'erreur à l'avant-dernière ligne:


> 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.

Merci d'avance pour votre aide !

Cordialement,
Madialen Chevalier

Francois Husson

no leída,
25 ene 2022, 11:55:3925/1/22
a factomin...@googlegroups.com
Bonjour,
Si vous êtes sous Mac, il faut mettre à jour Xquartz. Cela peut régler le pb.
Si cela ne suffit pas, réinstaller Rcpp peut permettre que ça refonctionne.
FH
--
Vous recevez ce message, car vous êtes abonné au groupe Google Groupes "FactoMineR users".
Pour vous désabonner de ce groupe et ne plus recevoir d'e-mails le concernant, envoyez un e-mail à l'adresse factominer-use...@googlegroups.com.
Cette discussion peut être lue sur le Web à l'adresse https://groups.google.com/d/msgid/factominer-users/fd371811-378d-458f-8afc-c5ec0ed6a510n%40googlegroups.com.

--
Francois Husson
Department Statistics & Computer science
L'Institut Agro - AGROCAMPUS OUEST
65 rue de St-Brieuc - 35042 RENNES
Tel: +33 2 23 48 58 86
https://husson.github.io

Madialen Chevalier

no leída,
27 ene 2022, 5:13:1727/1/22
a FactoMineR users
Bonjour,

J'ai réussi à faire ce que vous m'avez conseillé en revanche je tombe toujours sur ces deux messages d'erreurs.

Cordialement,
Madialen CHEVALIER



Capture d’écran 2022-01-27 à 11.09.20.png

Capture d’écran 2022-01-27 à 11.09.35.png
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos