Data Intelligence, Business Analytics
Permalink Reply by Triveni Hiremath on March 9, 2011 at 2:38am thank you Vincent,
i am trying to download CreditMetrix package from http://cran.ma.imperial.ac.uk/ , however, after dowloading zip file, how can i install it on R (i have R 2.12.2 already on my system). In this which is the file for installing, there is no .exe file in this zip folder ?
would you please guide me on it.
R installs packages via its own command line interface. The R packages are designed so that all you will need is R installed.
To install a package:
1. Open an R console. For windows you should run "Rgui.exe"
2. From the menu select Packages > Install Package(s)...
3. Choose a CRAN mirror close to your geographical location when given the choice.
4. In the Packages menu find the package you need and select OK. (Your package should be "CreditMetrics").
Of course all of this requires an internet connection. This is the easiest way to install a package. Once you have the package installed go back to the R gui command line
library(CreditMetrics)
of you can do...
require(CreditMetrics)
NOTE: if you are on another platform besides windows in Step 2. you may use the R command line and run the command "install.packages()"
Permalink Reply by Triveni Hiremath on March 18, 2011 at 7:26am Thank you Larry,
I am using R on windows. i have conection to internet and try to run the codes u have given for direct install. howevr we do not have admin rights at office to install any s/w so this did nt help me.
I downloaded ZIP folder with the help of IT team and then installed it on R using menu options.
A blog post from 4D Pie Charts has a neat little tutorial on sneaking around workplace firewalls by masking R as an Internet Explorer clone. This can be helpful for downloading packages and using RCurl they say.
http://4dpiecharts.com/2011/04/15/friday-function-setinternet2/
Interesting and pretty clever.
© 2013 AnalyticBridge.com is a subsidiary and dedicated channel of Data Science Central LLC