Closed FranciscoKerche closed 2 years ago
Hmm I'm sorry you are having trouble, I can only think its a temporary issue with CRAN or you need to upgrade perhaps to R 4.1.1 ? I've tried it again locally and it works, but on CRAN I can't find the check results https://cran.r-project.org/web/checks/check_results_measurementProtocol.html
Perhaps you can try installing it from GitHub on your VM? remotes::install_github("MarkEdmondson1234/measurementProtocol")
I think this should be sorted now? Please reopen if not.
What goes wrong
I am trying to install the most recent version of the googleAnalyticsR package, on a virtual machine but it returns an error that it failed to install measurementProtocol for my version of R. The package documentation states that it needs an R that has a version greater than 3.3.0. Mine is 4.0.4 and it is not being able to run it.
Steps to reproduce the problem
The issue I was having was similar to this former issue. We store our files locally to keep them safe, and just get the environment to use them as information. So, we used
ga_auth(json_file = Sys.getenv('GOOGLE_CREDENTIAL_PASSWORD'))
to read the JSON file contents, as we can't access the file itself. However, the package is not able to read it. As I was reading the previous issue, I realized that the problem was the same, and it happened because the package was out of date, it was downloaded the version 0.8.0, and the issue was solved on 1.0.0.To avoid this error, I attempted to install it with the most recent package version using
remotes::install_github("MarkEdmondson1234/googleAnalyticsR")
. We, then, received an error where MarkEdmondson1234/measurementProtocol wasn't available for download on our current version of R.Expected output
It was expected that the googleAnalyticsR would be downloaded considering the specifications and, once it is downloaded, that it was able to read the JSON file content stored on
GOOGLE_CREDENTIAL_PASSWORD
.Actual output
This is the error log:
However, the documentation states that the package is available for R version 3.3.0 or greater, which is clearly the case. Is there any suggestion on how to deal with it?
Session Info
The sessionInfo() is the following:
Thank you very much for any help!