I'm trying to use the package in order to set up cloud computing services of Google on Rstudio. However, I keep getting the same error when I try to authenticate using the JSON file.
This is my code:
library(googleComputeEngineR)
and this is the output:
Setting scopes to https://www.googleapis.com/auth/cloud-platform
Failed! Auto-authentication via GCE_AUTH_FILE=/Users/Martijn/Downloads/auth_key3.json - error was: cannot open the connection
Set default project ID to 'rstudio-XXX'
Set default zone to 'us-central1-c'
Warning message:
In open.connection(con, "rb") :
cannot open file '/Users/Martijn/Downloads/auth_key3.json': Operation not permitted
It looks like it's all set up ok but the file can't be read from the error message - if you call file.exists(Sys.getenv("GCE_AUTH_FILE")) does it return true?
Double check the file path maybe? File permissions?
Hi Mark,
I'm trying to use the package in order to set up cloud computing services of Google on Rstudio. However, I keep getting the same error when I try to authenticate using the JSON file.
This is my code:
library(googleComputeEngineR)
and this is the output:
My .Renviron looks like this:
I think the problem is caused by something inside the GCE console, but I cannot determine what it is. Hopefully anybody can assist me with this matter