Problems installing factoextra on r-4.1.0 on ubutnu 20.4

Hi! I have a problem trying to install the "factoextra" package on r-4.1.0 which is installed on ubutnu 20.4. After trying to use install.packages("factoextra") I get the following.

Can anyone help me?

ERROR: failed to lock directory ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1’ for modifying
Try removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/00LOCK-openxlsx’
Warning in install.packages :
installation of package ‘openxlsx’ had non-zero exit status
ERROR: dependency ‘openxlsx’ is not available for package ‘rio’

  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/rio’
    Warning in install.packages :
    installation of package ‘rio’ had non-zero exit status
    ERROR: dependency ‘rio’ is not available for package ‘car’
  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/car’
    Warning in install.packages :
    installation of package ‘car’ had non-zero exit status
    ERROR: dependency ‘car’ is not available for package ‘rstatix’
  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/rstatix’
    Warning in install.packages :
    installation of package ‘rstatix’ had non-zero exit status
    ERROR: dependency ‘car’ is not available for package ‘FactoMineR’
  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/FactoMineR’
    Warning in install.packages :
    installation of package ‘FactoMineR’ had non-zero exit status
    ERROR: dependency ‘rstatix’ is not available for package ‘ggpubr’
  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/ggpubr’
    Warning in install.packages :
    installation of package ‘ggpubr’ had non-zero exit status
    ERROR: dependencies ‘FactoMineR’, ‘ggpubr’ are not available for package ‘factoextra’
  • removing ‘/home/juan/R/x86_64-pc-linux-gnu-library/4.1/factoextra’
    Warning in install.packages :
    installation of package ‘factoextra’ had non-zero exit status

Try following the instructions from the error message

1 Like

I did it and it worked. Thank you.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.