for (i in 1:360) { plot(1, ann = F, type = "n", axes = F) text(1, 1, "Animation", srt = i, col = rainbow(360)[i], cex = 7 * i/360) Sys.sleep(0.01)}
We can obtain either R source or binaries from CRAN (the Comprehensive R Archive Network) mirrors: http://cran.r-project.org/mirrors.html
Take the mirror at UC Berkeley for example. You can see recompiled binary distributions of the base system and contributed packages in this list for different operating systems:
Windows users just have to click Windows (95 and later) and select the base directory, then download the file "R-*.*.*-win32.exe" (this is the setup program) and install it into your PC.
We may also get the source code and compile by ourselves, then just download the "R-*.*.*.tar.gz". Next I'll give a brief introduction to the compilation under Windows.
For detailed steps, please refer to Chapter 3 of "R Installation and Administration". The basic steps are:
Here is a screenshot of my compilation process:
If you want to install packages from source, you need to know the usage of R CMD install first, otherwise the simple function install.packages() in R is enough. Actually I'd like to recommend you to know further knowledge about R packages, including both the building and installation. The R CMD series are helpful for us, such as:
R CMD build
R CMD check
R CMD install
As there are already many documents focusing on this topic, I'll not make redundant efforts here. Refer to "Making R Packages Under Windows" if you are interested.