I'm an R user for some years now, and today, I opened a new R project, and tidyverse could'nt be installed.
install.packages("tidyverse")
The error message is :
Error : install of package 'processx' failed [error code 1]
In addition: Warning message:
1: Dans system2(R(), args, stdout = TRUE, stderr = TRUE) :
l'exécution de la commande ''/Library/Frameworks/R.framework/Resources/bin/R' CMD config CC 2>&1' renvoie un statut 1
2: Dans if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
la condition a une longueur > 1 et seul le premier élément est utilisé
3: Dans if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
la condition a une longueur > 1 et seul le premier élément est utilisé
Traceback (most recent calls last):
14: sourceWithProgress(script = "/var/folders/yw/_p67kkw161v0mh0cd92qcbhw0000gn/T/8163-6b53-10ca-cf6c",
encoding = "UTF-8", con = stdout(), importRdata = NULL, exportRdata = NULL)
13: eval(statements[[idx]], envir = sourceEnv)
12: eval(statements[[idx]], envir = sourceEnv)
11: renv::install("reprex")
10: renv_install_impl(records)
9: renv_install_staged(records)
8: renv_install_default(records)
7: handler(package, renv_install_package(record))
6: renv_install_package(record)
5: withCallingHandlers(renv_install_package_impl(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
4: renv_install_package_impl(record)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Exécution arrêtée
Since the error seems to be related with "processx", I tried to download this package as well, as it was suggested here :
install.packages("processx")
But the same error occured :
Error : install of package 'processx' failed [error code 1]
In addition: Warning message:
1: Dans system2(R(), args, stdout = TRUE, stderr = TRUE) :
l'exécution de la commande ''/Library/Frameworks/R.framework/Resources/bin/R' CMD config CC 2>&1' renvoie un statut 1
2: Dans if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
la condition a une longueur > 1 et seul le premier élément est utilisé
3: Dans if (eval(cond, envir = environment(dot))) return(eval(expr, envir = environment(dot))) :
la condition a une longueur > 1 et seul le premier élément est utilisé
About other packages :
- some can still be installed, like "ggplot2"
- but some other can not, like "callr"
It may have no association with my problem, but yesterday, I uploaded :
- my macOS version to macOS Monterrey 12.4
- and so on for my latest R version (from R-4.1.0 to R-4.2.0)
- and my RStudio version (from RStudio-1.4.1717 to RStudio-2022.02.3-492) I tried uninstalling and reinstalling one, the other one, and both, and the issue stays the same.
I've been looking for some solution over the clock, so thank you for your help, if you can !
Regards
Virgile
Thank you for all your responses.
@Kevin Ushey, the version is "renv_0.14.0". Both your advice, first
xcode-select --install
, thenutils::install.packages("tidyverse")
worked out pefectly...although I didnt understand the link with "renv".So @Ben Bolker, as you can see, problem solved :
Then :
You rock !