install.packages("swirl")
There is a binary version available but the source version is later:
binary source needs_compilation swirl 2.4.3 2.4.5 FALSE
installing the source package ‘swirl’
trying URL 'https://cran.rstudio.com/src/contrib/swirl_2.4.5.tar.gz' Content type 'application/x-gzip' length 108847 bytes (106 KB)
================================================== downloaded 106 KB
Warning in strptime(xx, f <- "%Y-%m-%d %H:%M:%OS", tz = tz) :
unknown timezone 'zone/tz/2019c.1.0/zoneinfo/America/Mexico_City'
* installing source package ‘swirl’ ...
** package ‘swirl’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loadingError in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘stringi’ 1.1.5 is being loaded, but >= 1.1.7 is required
ERROR:
lazy loading failed for package ‘swirl’
* removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/swirl’
Warning in install.packages :
installation of package ‘swirl’ had non-zero exit statusThe downloaded source packages are in
/private/var/folders/cv/ppslc7x52tbdh_xg5xg8_qtm0000gn/T/Rtmp2ZFFky/downloaded_packages