1
$\begingroup$

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.

$\endgroup$
2
  • 6
    $\begingroup$ This question appears to be off-topic because it is about how to use software. $\endgroup$ Commented Mar 3, 2014 at 18:03
  • $\begingroup$ try 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$
    – Andrew
    Commented May 7, 2015 at 14:29

1 Answer 1

2
$\begingroup$

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:

  1. Download the Cran packages from: http://cran.r-project.org/web/packages/fGarch/index.html, and choose "Install from Package Archive File"

  2. Choose "Install from Repository", and type in fGarch, it will search,download, and install it for you automatically.

$\endgroup$
2
  • $\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$
    – TYZ
    Commented Mar 3, 2014 at 18:44

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