How To Download A Package In R

Jump to Setting up a package repository - 6.6 Setting up a package repository. An URL scheme that download.packages supports (which also includes.

I have no idea how to open the file of the packages on programming R. For instance, when I download one of the Windows binaries of rgl from http://cran.r-project.org/web/packages/rgl/index.htm and I select R file of the downloaded zip file,using programming R, it does not work. How can I fix this problem?

SerendipitySerendipity

1 Answer

R is command-line based. That means that every action taken by R has to be specified in a line of code, including downloading and loading packages.

How to download a package from github in r

To download a package, you would use

How

Make sure there are no spaces between the quotation marks and the name, R can be very literal, so for instance ' package' is different from 'package' as it has an extra space. After you install a package you still cannot use it until you tell R to load it using one of:

Note that quote marks are no longer needed at this point. If this is all so very confusing, might want to give R Commander a try.

Package

How To Download A Package In R Form

Serban TanasaSerban Tanasa

R Install Local Package

Not the answer you're looking for? Browse other questions tagged r or ask your own question.