Blotter cannot be loaded in r 3.5.1 - r

I was able to use blotter and run quantstrat fine with previous r version
However, I have updated R vesion to 3.5.1 and when I load blotter I receive this msg when loading blotter:
"Error: package or namespace load failed for ‘blotter’: package ‘blotter’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version"
I have tried reinstall all packages. but blotter still does not work. There are info about many different r packages that return same error after R 3.5. but I cannot find a solution to this one. and it does not seem liek anyone has posted similar question on stackoverflow.
Can anyone give me some tips
Thx!

Use the same method I suggested for quantstrat package.
Tried Everying, Searched Everything, Issues installing Quantstrat package from Github
Let me know if it works.

Related

R studio install package failed

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.

Unable to open the R/Cape Package

Currently running R version 3.6.2 and RStudio version 1.2.5033 (both the latest versions as of today).
I have installed the R/Cape package from https://CRAN.R-project.org/package=cape, although when I try to load the package into R studio using:
library(cape)
I get the following from the RStudio console. RStudio then stops responding. I have tried this in just R as well and R also stops responding.
Can anybody please tell me if they've had any similar experiences and how they resolved them? Or if you've managed to install the 'cape' package how you did so?
The 'cape' library depends on other packages like 'htmltools' and many others. This is not an error message, just a warning. It means that some of the functions from 'tools:rstudio' will be replaced by other functions with the same name. See this answer which already addresses this.
As for the non-responsive behaviour, it is probably unrelated to the warnings discussed above. Try reinstalling R and updating all your packages. In Rstudio, you can update all your packages by clicking Tools > Update Packages > Select All > Install Updates.

How to easily switch R versions on rstudio ubuntu based?

I need to install a package that gives the following error so I am looking for a solution to that. The first approach is looking at ways to chose the right R version.
Should I spend some more time on this or there are other approaches to overcome this issue?
For this package you need R (≥ 3.5.0), so R 3.4.4 is not sufficient for standard installation.
Check on the cran website of the package for further information.
For upgrading R on ubuntu check here (old link!)
Edit: wibeasley mentioned a new link in the commentary for updating R 3.5.0 on Ubuntu.
Check the new link

Building a vignette

I was developing a package when I found a new error when building the package.The error makes reference to a line that previously didn't have any problem and I didn't modify. However it run smoothly in a fresh R session when I ran the code or knit the vignette alone.
Long story short: I found that this error happens when a suggested package (by my package's DESCRIPTION) is loaded before my package.
How can I control this?
The reason of the error is that my package (A) has a function is named exactly the same as the other package (B) because it does the same kind of process, but I use a different name for the same arguments (and in my version I provide other arguments as well). A solution I found is to use A::function, but that would be uglier to the reader. Is there any other solution?
This didn't happened in previous cycles of development. I have observed it on the latest R version R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" and in the devel version of R. The packages are build using both R CMD build package and devtools::check()
The conflicting package is in Suggests: part of the DESCRIPTION file of the package
This question might be related to this other one.

errors when installing older dplyr package in R

Im a bit new to R and need to use/adapt someone else code in R.
My supervisor uses R version 3.2.2 with the dplyr package version 0.4.3 (to overcome errors and problems with the original code).
I tried to install the older dplyr package with different methods:
- installed devtools package and then used the url devtools::install_url("http://cran.r-project.org/src/contrib/Archive/dplyr/dplyr_0.1.2.tar.gz")
- manual installation (where I downloaded the file and tried to install it.) Installation seemed to have worked but when I run the code it gives a fatal error massage
Every way I've tried so far either gives a lot of error messages or a fatal error and shutdown.
When using help ?dplyr it gives a pop-up that there is an error. Does anybody have any other ideas to install this package?
Thanks!

Resources