Installation mgarch Package on R

Asked

Viewed 99 times

3

I want to install the package mgarch. I downloaded it for here.

Looks like I need to install the devtools as explained here.

I do all this and I can’t.

How can I solve this problem?

I do the following procedure:

install.packages("devtools")

library(devtools)

dev_mode(on=T)

install_github("mgarch")

The mgarch folder is created in: C: Users Meunome Documents R win-library 3.1

soon after I make the command:

library("mgarch")

and says there is no such package.

  • 1

    What would be "can’t do it"? What mistakes are delivered to you?

1 answer

1

Assuming that the devtools has been installed correctly, you need to use the command:

library(devtools)
install_github("vst/mgarch")

and not install_github("mgarch").

mgarch is the name of the repository on github, but every repository has an owner, in this case it is the vst.

See the link: https://github.com/vst/mgarch

  • Yes Daniel.... after ``library(devtools)einstall_github("vst/mgarch")` it happens that:

  • `Downloading github Repo vst/mgarch@master Installing mgarch "C:/PROGRA~1/R/R-31~1.0/bin/x64/R" -vanilla CMD INSTALL "C:/Users/Diogo/Appdata/Local/Temp/Rtmpkegy5l/devtools28fc650e497c/vst-mgarch-788d77b" -library="C:/Users/Diogo/Documents/R/win/3.1" --install-tests

    • stalling source package 'mgarch' ... ** libs *** Arch - i386 Warning: run 'make -f" "C:/PROGRA~1/R/R-31~1.0/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-31~1.0/share/make/winshlib.Mk" SHLIB="mgarch.dll" OBJECTS="loglikelihood. the loglikelihood_GJR. the matrixlib. "' had status 127 ERROR: Compilation failed for package 'mgarch' * removing 'C:/Users/Diogo/Documents/R/win-library/3.1/mgarch' Error: Command failed (1)
  • Have you tried installing Rtools? http://cran.r-project.org/bin/windows/Rtools/ Usually these packages with code in compiled languages need it. Linux is not required, but Windows sometimes needs.

  • Ja Daniel......

  • how much RAM memory has your computer?

  • Well, I did. I had to reinstall Rtools...thank you very much for your personal help.

Show 2 more comments

Browser other questions tagged

You are not signed in. Login or sign up in order to post.