How do I install the fGarch
package for R? When I run install.packages('fGarch')
, it returns package ‘fGarch’ is available as a source package but not as a binary
.
1 Answer
$\begingroup$
$\endgroup$
2
If you are using Rstudio, it is farily easy to install packages, just go to Tools
on navigation bar, click on Install Packages...
.
You can do it in two ways:
Download the Cran packages from: http://cran.r-project.org/web/packages/fGarch/index.html, and choose "Install from Package Archive File"
Choose "Install from Repository", and type in fGarch, it will search,download, and install it for you automatically.
-
$\begingroup$ Why do you assume the OP uses RStudio? $\endgroup$ Commented Mar 3, 2014 at 18:24
-
1$\begingroup$ Well I believe Rstudio is one of the most popular interface tools for R scripting? $\endgroup$– TYZCommented Mar 3, 2014 at 18:44
install.packages("fGarch", type = "source")
- there are no binaries (for Windows, at least), but if you have a local FORTRAN compiler you're in business. $\endgroup$