I tried several times to Install StatPlots pkg using:
using Pkg
Pkg.add("StatPlots")
but I got kind of error as mentioned right down bellow:
How can i install it?
I'm Using Julia 1.7.1
You are likely thinking of StatsPlots (note the spelling difference)
Related
I tried to install the packages in the following way:
pacman::p_load(tidyverse, lubridate, zoo,
timetk, modeltime,
trelliscopejs, seasonal,
tsibble, feasts, fable)
However, I got the below errors:
I'm not sure what's wrong, I'm using the latest R version 4.2.1, the warning seems to suggest that need to change to 4.1.3, is there anyway to install those packages without changing the version?
The problem is not related to the package in itself. The warning about the version only tells you that the last time this package was built was on R 4.1.3, but it should work on R 4.2.
The problem is that the place where R searches this package doesn't exist. If you go here: https://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/, you will see that the last version of R is 3.4, whereas you're looking for a package built in R 4.1 (see the version in the URL address in the error message).
Here's some advice to solve this (I can't reproduce your problem so I can't be sure this works): if you're using RStudio, go to "Tools -> Global Options -> Packages". I think that under "Primary CRAN repository", there should be the name of the current place where R searches for the files to install each package. You can change this: either pick "Global (CDN) - RStudio" or any other that is not too far from your location. Then restart R and try reinstalling the packages.
After upgrading to R 3.6.2 I am getting a series of errors about earlier versions of libraries being used :
Error: package ‘stringi’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
Execution halted
I have worked through several of these via
install.packages('stringi')
but that just leads down the rabbit hole to the next mismatched library. What I'd like to do is en-masse upgrade the existing libraries. Here is a suggestion to use:
lib_loc <- "<old R library path"
to_install <- unname(installed.packages(lib.loc = lib_loc)[, "Package"])
to_install
install.packages(pkgs = to_install)
However - where is the <old R library path> on ubuntu?
Update Based on suggestion from #RuiBarradas I ran:
update.packages(ask=FALSE)
But the "different internals" errors shown above still happens for many packages. So I am still looking for an answer to how to upgrade the ones installed on the older version of R (3.4.4)
Following did the trick - thanks to #RuiBarradas for the pointer to update.packages:
update.packages(checkBuilt=TRUE, ask=FALSE)
I would like to install the R Package JuliaCall, to use Julia from R. I have installed Julia via snap and installed the JuliaCall R package form the Cran.
I received the following error when trying to use the setup function of JuliaCall.
library(JuliaCall)
julia <- julia_setup()
Julia version 1.0.4 at location /snap/julia/13/bin will be used.
Error in dyn.load(.julia$dll_file) :
unable to load shared object '/snap/julia/13/bin/../lib/libjulia.so.1':
/snap/julia/13/bin/../lib/libjulia.so.1: wrong ELF class: ELFCLASS32
Show Traceback
Rerun with Debug
Error in juliacall_initialize(.julia$dll_file) :
/snap/julia/13/bin/../lib/libjulia.so.1 - /snap/julia/13/bin/../lib/libjulia.so.1: wrong ELF class: ELFCLASS32
Julia is installed:
XRJulia::findJulia()
[1] "/snap/bin/julia"
I have tried some suggestions found in
https://github.com/Non-Contradiction/JuliaCall/issues/72
and even report my problems, but I'm not sure if this is an issue to open on Github or a problem with my installation.
The same error occurs
My system specifications are:
Ubuntu 18.04,
Rstudio 1.1.456,
R 3.5.1,
Julia installed via snap
Thanks for any help you could provide
Actually, the developer of JuliaCall answered my question.
I have installed Julia using snap without noticing that a 32bits version was used. Installing Julia from the .tar.gz archive and choosing the correct 64 bits version solve this problem.
Many Thanks to #Non-Contradiction.
Installing Quantstrat Issues. I am running the latest versions of R, RStudio, and Rtools. I have installed devtools / remotes packages and cannot seem to get quantstrat installed. enter image description here
I had similar problems too. Installing quantstrat via cmd works well for me. Here are the steps:
Create a folder for packages i.e RPackages\
Download the file from github to that specific folder and extract the files to the library name. i.e RPackages\quantstrat\
go on command line and goto RPackages
Type" R CMD build quantstrat
If it was successful, you will get a message like "building 'package_name_version_number.tar.gz'"
Now type: R CMD INSTALL package_name_version_number.tar.gz
Let me know if you have any other challenges.
I get the following error at step 4:
'R' is not recognized as an internal or external command,
operable program or batch file.
what do I need to do to overcome this.
Here is the fix that worked for me:
There could be version issues depending on what version of R that you have especially for Blotter and PerformanceAnalytics. Since PerformanceAnalytics to install blotter, you must ensure that version force compatibility and the easiest way is just to install it fresh. Start by installing PerformanceAnalytics then blotter then quantstrat and you should be in good shape. Use the code below and let me know how your results turn out. Took me a few hours to solve it, but just got it done today (7/27/2020)
install.packages("PerformanceAnalytics")
remotes::install_github("braverock/blotter")
remotes::install_github("braverock/quantstrat", force = TRUE)
I just updated to RStudio 1.0.136 and tried to import a csv. Therefore it wants me to install a package called readr. If I try this, it fails installing its dependency on tibble with error message:
RcppExports.cpp:4:10: fatal error: 'Rcpp.h' file not found
#include <Rcpp.h>
^
Since this seems to be some problem with the package itself and the integration of C++ code, is there anything I can do beside filing a bug report?
I recognised that the error also occured for some other packages such as GGPLOT2. I updated my R version to 3.3 and all packages without success. Finally I ran brew uninstall --force R and brew install R, after that everything went fine. Now I have R version 3.4 installed (even that R reported before, that there was no newer version available).
It sounds like you need to update all of your packages. Go to tools, then check for package updates, and update everything. You should also check that you have the most current version of R installed. If neither of these solve your problem you might want to try reinstalling the Rccp package.