swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.13k stars 593 forks source link

No Swirl Package on R Studio? #784

Open regacosta opened 4 years ago

regacosta commented 4 years ago

Hello, So I've checked the packages on the latest R Studios version and couldn't find Swirl on the package list. I was confused as to why I was unable to run install.packages("swirl") as well. Any status on the issue so may continue to use your service?

Thank you Annotation 2020-01-30 165444

cpgitgig135 commented 4 years ago

Install swirl from the plain R compiler instead of from RStudio. That means from the RGui (the plain compiler for R, not within the RStudio visual interface). Choose if you want 64 or 32 bits or both (pick the correct one for your computer, either a 64-bit or 32 bit computer you have, but you can allow both to be installed if you do not know which -but you can look at your control panel in Windows to know which one you have-). If you have not installed R then download it from:

https://www.r-project.org/

and install R. Once R is installed then open the R program (not RStudio) and install swirl by typing

install.packages("swirl")

It will ask you where you want to install it from (select CRAN and the nearest or most convenient country for you). It will install a lot of stuff (it takes several minutes). Then to load swirl you type:

library(swirl)

To install the "R programming course" for swirl you type:

install_from_swirl("R Programming")

Wait for that library to be ready for use (it takes a few seconds) and then type:

swirl()

If you close R then to use the swirl library again you will have to load the library by typing library(swirl), wait for it to be loaded, and then type swirl()