tidyverse / magrittr

Improve the readability of R code with the pipe
https://magrittr.tidyverse.org
Other
957 stars 157 forks source link

Error: there is no package called 'magrittr' #234

Closed annytr closed 3 years ago

annytr commented 3 years ago

Hello,

There has not been a package called "magrittr" found. Could you help me pls?

devtools::install_github("tidyverse/magrittr")

Error: .onLoad in loadNamespace () for 'pkgload' failed, details: Call: loadNamespace (j <- i [[1L]], c (lib.loc, .libPaths ()), versionCheck = vI [[j]]) Error: there is no package called 'magrittr'

lionel- commented 3 years ago

Close all your RStudio and R sessions. Open a new one and do

remotes::install_github("tidyverse/magrittr")

Note the use of remotes instead of devtools. But you can also just use install.packages("magrittr"), it's been released to CRAN.

Also see these tips for safely installing packages on Windows, it's trickier than for other operating systems: https://github.com/rstats-wtf/what-they-forgot/issues/62#issuecomment-545038970