Installing Quantstrat in a recently updated R in Fedora Linux - r

I have updated my Fedora Distribution recently, and R was updated too. I re installed most of the packages, but I couuldnt install blotter and quantstrat.
How can I solve this issue? Thank you!
The error I get is the following one:
install.packages("quantstrat", repos="http://R-Forge.R-project.org")
Warning in install.packages :
package ‘quantstrat’ is not available (for R version 3.4.0)
My sessioninfo is the folowing:
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 25 (Twenty Five)
Matrix products: default
BLAS/LAPACK: /usr/lib64/R/lib/libRblas.so
locale:
[1] LC_CTYPE=es_AR.UTF-8 LC_NUMERIC=C LC_TIME=es_AR.UTF-8 LC_COLLATE=es_AR.UTF-8
[5] LC_MONETARY=es_AR.UTF-8 LC_MESSAGES=es_AR.UTF-8 LC_PAPER=es_AR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=es_AR.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0

Your problem likely isn't an issue related to Fedora linux. Install quantstrat from souce via github, where the latest code resides:
library(devtools) # need devtools to use install_github
install_github("braverock/quantstrat")

Thank you very much!! I have successfully intalled it! Both in my Fedora and in W10 notebook.
I installed a weeks ago. I had to wait for the new TS package to be available on cran, since blotter required it.
Thank you very much!

Related

Package ggvoronoi in latest R (4.2.1) in Ubuntu 20.04 LTS failing to install

I have been successfully using the package ggvoronoi even a few weeks ago in R (3+). Until then all of a sudden R started to tell me:
> library(ggvoronoi)
Error in library(ggvoronoi) : there is no package called ‘ggvoronoi’
Okay, then I tried to install the package, but then getting the following error:
> install.packages("ggvoronoi")
Installing package into ‘/home/pratikmullick/R/x86_64-pc-linux-gnu-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ggvoronoi’ is not available (for R version 3.6.3)
Finally I updated the R to 4.2.1. This is my sessionInfo()
> sessionInfo()
R version 4.2.1 (2022-06-23)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/liblapack.so.3
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_IN.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_IN.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_IN.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.2.1 tools_4.2.1
But even then the problem with installing ggvoronoi did not solve:
> install.packages('ggvoronoi')
Installing package into ‘/home/pratikmullick/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘ggvoronoi’ is not available for this version of R
A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
Can anyone please help me?

Parallel package is not available in R 3.3.1 (Ubuntu 14.04)

I'm doing some heavy work with my computer. I'd like R used the 4 processors . But, used one at a time. I think the parallel package can be useful, but is not available. What I can do?
When I try to install the following appears
> install.packages("parallel")
Installing package into ‘/home/hector/R/x86_64-pc-linux-gnu-library/3.3’
Warning in install.packages :
package ‘parallel’ is not available (for R version 3.3.1)
Warning in install.packages :
package ‘parallel’ is a base package, and should not be updated
Here is my sessionInfo:
> sessionInfo()
R version 3.3.1 (2016-06-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.4 LTS
locale:
[1] LC_CTYPE=es_CL.UTF-8 LC_NUMERIC=C LC_TIME=es_CL.UTF-8
[4] LC_COLLATE=es_CL.UTF-8 LC_MONETARY=es_CL.UTF-8 LC_MESSAGES=es_CL.UTF-8
[7] LC_PAPER=es_CL.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=es_CL.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tools_3.3.1
Some packages are coming with R as recommended packages, like parallel, compiler and mgcv. You don't need to install or update them; when you upgrade your R version, they will be upgraded, too, if new package release is available.
These packages are not loaded on R start-up; but you can get them immediately by
library(parallel)
library(compiler)
library(mgcv)
an so on.

R-3.2.1 unable to load shared object internet.so

I am unable to install packages from CRAN after upgrading R from 3.1.3 to 3.2.1.
The error message is that the shared object internet.so cannot be loaded.
install.packages("randomForest")
Installing package into ‘/gs/project/feb-684-aa/BIF/R/R-3.2.1/library’ (as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
Error in url("http://cran.r-project.org/CRAN_mirrors.csv") :
internet routines cannot be loaded
In addition: Warning message:
In url("http://cran.r-project.org/CRAN_mirrors.csv") :
unable to load shared object '/software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so':
/software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so: undefined symbol: curl_multi_wait
> sessionInfo()
R version 3.2.1 (2015-06-18)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: CentOS release 6.5 (Final)
locale:
[1] LC_CTYPE=en_CA.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_CA.UTF-8 LC_COLLATE=en_CA.UTF-8
[5] LC_MONETARY=en_CA.UTF-8 LC_MESSAGES=en_CA.UTF-8
[7] LC_PAPER=en_CA.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] nvimcom_0.9-8
loaded via a namespace (and not attached):
[1] tools_3.2.1
[blancha#lg-1r17-n04 BIF]$ ls /software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so -l
-rwxrwxr-x 1 blancha feb-684-01 275221 Jul 12 09:47 /software/areas/ircm/tools/R-3.2.1/lib64/R/modules//internet.so
The following post appears to address a similar issue.
Error in install.packages: internet routines cannot be loaded using StatET while it works in R console
Fixed!
Thank you #David Robinson for your suggestions. They put me on the right track.
I just added the following command to my .bash_profile, and the problem was solved:
export LD_LIBRARY_PATH=$TOOLS/curl-7.43.0/lib:$LD_LIBRARY_PATH

installing e1071 in R on ubuntu interface

I am unable to install e1071 on my ubuntu machine.
I tried using:
sudo apt-get install r-cran-e1071
gives an error message:
Warning messages:
1: In open.connection(con, "r") :
unable to connect to 'cran.r-project.org' on port 80.
2: E: Unable to locate package r-cran-e1071
and
install.packages("e1071", dep = TRUE, type = "source")
gives an error message:
package ‘e1071’ is not available (for R version 2.15.2)
sessionInfo() gives:
R version 2.15.2 (2012-10-26)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_IN LC_NUMERIC=C LC_TIME=en_IN
[4] LC_COLLATE=en_IN LC_MONETARY=en_IN LC_MESSAGES=en_IN
[7] LC_PAPER=C LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] tcltk_2.15.2 tools_2.15.2
The package e1071 depends on package class. The package class depends on R (≥ 3.0.0). Hence, you should update to a more recent R version.
Like #SvenHohenstein already said, the package needs a different version of R. What you can do is get an old version of the package from its archives, but you'll probably have to install older versions of other packages. In addition, you'll have to build the old version of the package from source as no binary versions are archived. Simply updating to a new R version is much easier...

R Rmetrics packages

I ´ve tried to install some packages from Rmetrics, but it looks I am doing something wrong.
For
https://r-forge.r-project.org/scm/viewvc.php/pkg/fPortfolioBacktest/?logsort=cvs&root=rmetrics&pathrev=4948
I simply used
install.packages("fPortfolioBacktest", repos="http://R-Forge.R-project.org")
but
> install.packages("fPortfolioBacktest", repos="http://R-Forge.R-project.org")
Warning: unable to access index for repository http://R-Forge.R-project.org/bin/windows/contrib/2.12
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
package ‘fPortfolioBacktest’ is not available
Exactly the same problem is with
https://r-forge.r-project.org/scm/viewvc.php/pkg/Rsocp/?root=rmetrics&pathrev=3690
> sessionInfo()
R version 2.12.0 (2010-10-15)
Platform: i386-pc-mingw32/i386 (32-bit)
locale:
[1] LC_COLLATE=Slovak_Slovakia.1250 LC_CTYPE=Slovak_Slovakia.1250 LC_MONETARY=Slovak_Slovakia.1250 LC_NUMERIC=C
[5] LC_TIME=Slovak_Slovakia.1250
attached base packages:
[1] splines stats graphics grDevices utils datasets methods base
other attached packages:
[1] corpcor_1.5.7 fPortfolio_2130.80 fAssets_2100.78 fCopulae_2110.78 sn_0.4-16
[6] mnormt_1.4-3 robustbase_0.7-0 xlsx_0.3.0 xlsxjars_0.3.0 rJava_0.8-8
[11] ttrTests_1.5 PerformanceAnalytics_1.0.3.2 fTrading_2110.77 fBasics_2110.80 timeSeries_2130.90
[16] timeDate_2130.91 dynlm_0.3-0 car_2.0-8 survival_2.36-3 nnet_7.3-1
[21] MASS_7.3-8 lmtest_0.9-27 tseries_0.10-24 quadprog_1.5-3 quantmod_0.3-15
[26] TTR_0.20-2 xts_0.8-0 zoo_1.6-4 Defaults_1.1-1
loaded via a namespace (and not attached):
[1] grid_2.12.0 lattice_0.19-13 Rglpk_0.3-5 slam_0.1-22 strucchange_1.4-2 tools_2.12.0
Is there a fast way how to install them with all the dependencies? I am using Windows XP
Thanks,
Alex
Thanks for adding the error and your sessionInfo.
As I said in my comment, you're running an old version of R (2.12.0). R-forge only builds binaries for the most recent major revision (2.13.X). You need to either upgrade R or build from source. To build from source on Windows, you will need the Windows toolset.

Resources