Going crazy trying to install Quantstrat - r

I am trying to install quanstrat. So far I have downloaded Rtools35 I am using R 3.5.1 when i use the code
devtools::install_github("braverock/blotter")
I receive this error
Downloading GitHub repo braverock/blotter#master
Error: Could not find tools necessary to compile a package
Here is the path
Sys.getenv('PATH')
[1] "C:\\Program Files\\R\\R-3.5.1\\bin\\x64;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\Program Files (x86)\\ATI Technologies\\ATI.ACE\\Core-Static;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Users\\Jordan\\AppData\\Local\\Microsoft\\WindowsApps;"
Your help is much appreciated thank you! If there is a better alternative to quanstrat please let me know!

I FINALLY figured it out. You CAN NOT do this in Rstudio. You have to do it in R. Uhhh why did they make that so difficult?

Related

Can anyone help me with the R packages EcoSimR and bipartite?

I'm trying to use these packages to niche analysis but both seems to be removed from CRAN and packages which should replace them are not working. There is a new source for these packages or any way to carry out this analysis using another package?
Thank you!
Here you can download the archived file:
https://cran.r-project.org/src/contrib/Archive/EcoSimR/
Save the EcoSimR_0.1.0.tar to your folder.
Got to Packages in RStudio and press install
Install from archive

Troubles installing rattle for R

I apologize in advance if I missed some obvious rookie mistake I did.
I tried installing rattle both through R terminal with the install.packages command and both with
wajig install r-cran-rattle
neither worked: In the first case it downloaded some tar.gz to a temp folder but didn't install anything, in the second one it says that is Unable to locate package r-cran-rattle.
I'm attaching some screenshot to better showcase what I tried to do and what kind of messages I'm getting:
https://imagizer.imageshack.com/img924/2278/06fVvR.png
https://imagizer.imageshack.com/img924/3198/P28Yv1.png
https://imagizer.imageshack.com/img924/1463/ZGpSGb.png
https://imagizer.imageshack.com/img923/5169/aBsT1G.png
https://imagizer.imageshack.com/img923/9031/IaSAyg.png
https://imagizer.imageshack.com/img923/2918/thJ4Ay.png
https://imagizer.imageshack.com/img923/8039/07uKDL.png
https://imagizer.imageshack.com/img924/4054/NGHeoB.png
In the end, when I try the rattle command in R terminal it always says that it cannot find the function rattle. Thanks in advance to whoever will help me.
Best regards,
Andrea.
Thanks for the query.
Rattle has installed just fine. You need to load the rattle package into the library each time you start up R using library(rattle). The call to rattle() should then work.
In general, the steps to install Rattle (with the GUI functionality provided by RGtk2) should be:
$ wajig install r-recommended
$ R
> install.packages("rattle")
> install.packages("RGtk2")
> library(rattle)
> rattle()
A number of other packages will be automatically installed too.
To then install the latest development (but quite stable) release:
> install.packages("rattle", repos="https://rattle.togaware.com", type="source")

How can I resolve this error when installing r packages?

I want to try this geopspatial mapping tutorial but I can't get the tmap or tmaptools packages to install/load properly. Here are some screenshots of the installation.
and and results in this problem when I try to load the libraries
If anyone could explain what the problem is and how I could fix it I would appreciate the help.
#user2554330 was right, there was a C compiler I had previously installed for a class that was interfering with the installation of the packages. I just renamed the directory of the compiler and everything worked.

Tried Everying, Searched Everything, Issues installing Quantstrat package from Github

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)

Not able to load the 'forecast' or 'auto.arima' functions

Although I installed the required packages to execute auto.arima(), im not able to do so. Can anybody navigate through this problem
And further i tried to install "Rccp", but that also failed. Need the solution asap, thanks in advance.
You could try installing the needs package which takes care of all your dependencies.
install.packages('needs')
needs(forecast)
?forecast
you must install the package with dependencies:
install.packages("forecast", dependencies = TRUE)

Resources