unable to load swirl modules

Hey there, i am unable to load swirl module Getting and Cleaning Data's "Tidying Data with tidyr". Everytime i navigate it to the swirl module, it would ask me to:

"This lesson requires the ‘readr’ package. Would you like me to install it for you now?"
if I click yes, it says: | Trying to install package ‘readr’ now...
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:


package ‘readr’ successfully unpacked and MD5 sums checked

| Could not install package ‘readr’!
| | 0%Error in seq.default(0, 1, length.out = nrow(e$les)) :
argument 'length.out' must be of length 1

| Leaving swirl now. Type swirl() to resume.

I repeated and said no to installing readr, and it says:
| 0%Error in seq.default(0, 1, length.out = nrow(e$les)) :
argument 'length.out' must be of length 1

| Leaving swirl now. Type swirl() to resume.

I tried looking for answers online, and suggestions included installing the dependencies separately, reverting to r 3.3.3 or 3.6.3, but none of these worked. Here is my sessionInfo:

R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=English_Singapore.1252 LC_CTYPE=English_Singapore.1252
[3] LC_MONETARY=English_Singapore.1252 LC_NUMERIC=C
[5] LC_TIME=English_Singapore.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] swirl_2.4.5

loaded via a namespace (and not attached):
[1] Rcpp_1.0.4.6 knitr_1.30 magrittr_2.0.1 R6_2.5.0 rlang_0.4.6
[6] stringr_1.4.0 httr_1.4.2 tools_4.0.3 xfun_0.19 tinytex_0.27
[11] htmltools_0.4.0 crosstalk_1.1.0.1 rprojroot_2.0.2 yaml_2.2.1 leaflet_2.0.3
[16] digest_0.6.25 htmlwidgets_1.5.2 bitops_1.0-6 RCurl_1.98-1.2 testthat_3.0.0
[21] evaluate_0.14 rmarkdown_2.5 stringi_1.5.3 compiler_4.0.3

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.