I am searching some help to download a package that is not on cran but on R-Forge. The name of the package is fMarkovSwitching, I tried different things and when i search on the internet I do not find information that can help me to do it.
Below you can see some examples of what i have already try.
When I do:
install.packages("fMarkovSwitching", repos="http://R-Forge.R-project.org")
I have this:
install.packages("fMarkovSwitching", repos="http://R-Forge.R-project.org")
Installation du package dans ‘C:/Users/xxxxx/AppData/Local/R/win-library/4.4’ (car ‘lib’ n'est pas spécifié)
Warning in install.packages : impossible d'accéder à l'index de l'entrepôt http://R-Forge.R-project.org/src/contrib: impossible d'ouvrir l'
URL 'http://R-Forge.R-project.org/src/contrib/PACKAGES'
Warning in install.packages : le package ‘fMarkovSwitching’
n'est pas disponible for this version of R Une version de ce package pour votre version de R est peut-être disponible ailleurs, Voyez des idées à https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Warning in install.packages : impossible d'accéder à l'index de l'entrepôt http://R-Forge.R-project.org/bin/windows/contrib/4.4: impossible d'ouvrir l'
URL 'http://R-Forge.R-project.org/bin/windows/contrib/4.4/PACKAGES'
Then, I have this two files ‘fMarkovSwitching_1.0.tar’ and ‘ Rdonlp2_3042.11.tar’ that i saw was download on my computer and I tried again to install packages and change the ‘install from’ to ‘ Package Archive’ but it still doesn’t work. I have either this:
install.packages("~/fMarkovSwitching_1.0.tar.gz", repos = NULL, type = "source") Installation du package dans ‘C:/Users/xxxxx/AppData/Local/R/win-library/4.4’ (car ‘lib’ n'est pas spécifié)
ERROR: dependency 'Rdonlp2' is not available for package 'fMarkovSwitching'
* removing 'C:/Users/xxxx/AppData/Local/R/win-library/4.4/fMarkovSwitching'
Warning in install.packages : l'installation du package ‘C:/Users/xxxxx/OneDrive - xxxxx/Documents/fMarkovSwitching_1.0.tar.gz’ a eu un statut de sortie non nul
# OR THIS
install.packages("~/Rdonlp2_3042.11.tar.gz", repos = NULL, type = "source")
Installation du package dans ‘C:/Users/xxxxx/AppData/Local/R/win-library/4.4’ (car ‘lib’ n'est pas spécifié)
* installing *source* package 'Rdonlp2' ...
** using staged installation
** libs using C compiler: 'gcc.exe (GCC) 13.2.0'
/usr/bin/make -C DONLP2 -f Makefile.win
make[1]: Entering directory '/c/Users/xxxx/AppData/Local/Temp/Rtmpsncxed/R.INSTALL90a8136e29f1/Rdonlp2/src/DONLP2'
gcc -I"C:/PROGRA~1/R/R-44~1.0/include" -DNDEBUG -D__WOE__ -D__MINGW32__ -I. -I"C:/rtools44/x86_64-w64-mingw32.static.posix/include" -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c donlp2.c -o donlp2.o donlp2.c:
In function 'o8st': donlp2.c:592:14: error: 'DOUBLE_EPS' undeclared (first use in this function) 592 | epsmac = DOUBLE_EPS; /* modified by RT to use R's machine epsilon */ | ^~~~~~~~~~ donlp2.c:592:14: note: each undeclared identifier is reported only once for each function it appears in donlp2.c:609:14: error: 'DOUBLE_XMIN' undeclared (first use in this function); did you mean 'DBL_MIN'? 609 | tolmac = DOUBLE_XMIN; /* modified by RT to use R's machine_xmin */ | ^~~~~~~~~~~ | DBL_MIN
donlp2.c:578:45: warning: unused variable 'term' [-Wunused-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~~
donlp2.c:578:41: warning: unused variable 'hxi' [-Wunused-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~
donlp2.c:578:37: warning: unused variable 'gxi' [-Wunused-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~
donlp2.c:578:30: warning: variable 'infiny' set but not used [-Wunused-but-set-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~~~~
donlp2.c:578:26: warning: unused variable 'bd0' [-Wunused-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~
donlp2.c:578:21: warning: unused variable 'tol1' [-Wunused-variable] 578 | static double tol1,bd0,infiny,gxi,hxi,term; | ^~~~
donlp2.c: In function 'o8opti':
donlp2.c:2231:17: warning: variable 'iumin' set but not used [-Wunused-but-set-variable] 2231 | static int iumin,rank0,nr0,csdifx,clwold; | ^~~~~ make[1]:
*** [C:/PROGRA~1/R/R-44~1.0/etc/x64/Makeconf:289: donlp2.o] Error 1 make[1]: Leaving directory '/c/Users/xxxx/AppData/Local/Temp/Rtmpsncxed/R.INSTALL90a8136e29f1/Rdonlp2/src/DONLP2' make:
*** [Makevars.win:11: DONLP2/libdonlp2.a] Error 2 ERROR: compilation failed for package 'Rdonlp2' * removing 'C:/Users/xxxxx/AppData/Local/R/win-library/4.4/Rdonlp2' Warning in install.packages : l'installation du package ‘C:/Users/xxxx/OneDrive - xxx/Documents/Rdonlp2_3042.11.tar.gz’ a eu un statut de sortie non nul > |
I am a little lost I do not know what to do, I hope that you can help me install it thanks
I am expecting to succeed to download the fMarkovSwitching package on my Rstudio
user26377652 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1