Thank you for your video. I got quite far through the cloudrunner setup, but when I get to the cr_setup_test() I am running into a roadblock on step 5 - Cloud Scheduler - R Script. All other tests pass. This is giving me an error "Error: Could not create topic:cr_rscript_2022111668980487164127-topicNo projectId set - use ps_project_set() or set GCP_PROJECT env var". I've tried searching to figure this out, but it is still unclear. Any help would be most welcome.
@@MarkEdmondsonAtHome Thanks man. I was able to deploy a test. Have shifted gears to on-prem setups for a little while because the costs for the cloud infrastructure are a bit high and I'm learning a lot from the linux deployment at home. Do appreciate your response and the content. Very good video.
Thanks so much for this very nice package and guide :) I have one issue when following your guide: When loading the client id json file i downloaded from the google console i get the following error: x Could not read details from client ID file - is it the right one? x Need a clientId to be set before configuring further Error: Setting is required It has already found the project id. I tried to restart R several times, but did not work. My configuration: type: Web application. project only setup. windows pc. API's enabled. Hope you can help :)
Thanks Mathias :) It sounds to me as you have downloaded the "Web Application" type when you actually need "Desktop App" - see explanation here: ua-cam.com/video/RrYrMsoIXsw/v-deo.html at around the 11min part
@@Flintax5 In that case you would use two client.ids - one for deploying the Shiny (Desktop app) and another for the Shiny app itself (Web application) that is uploaded with the Shiny app to deal with the online authentication. This video only deals with the first scenario.
@@Flintax5 I was wondering about this too. It works with having the 2 app types created. Just a note for the future readers of this thread, the cr_setup func will *only* see and register the json for the desktop app in Renviron, but this won't be an issue for the following steps and the deployment.
Hi Mark! Thank you for this great detailed tutorial. I encountered an odd issue at the early stage of creating a .Renviron file. It gives me the following message when I choose "Project Only" ✔ Created local .Renviron file - please restart R then rerun setup. but I cannot find the file in any locations. It's not in the working directory, nor in the home directory. I cannot follow the rest of the tutorial, since I've been stuck on this. Do you have any ideas why is this happening?
Hmm odd one but I guess the file is there, but its a hidden file with the dot and your folder is set up not to show it - try looking for "show hidden files" in your environment.
@@MarkEdmondsonAtHome thanks for your quick response! I checked it and that was not the case. If it existed there it should continue to next steps. Problem is it gives me the same message over and over (with or without R session restarting) and will not proceed to next steps. Do you think reinstalling RStudio might help?!
@@MarkEdmondsonAtHome I appreciate your help and prompt answer. I was not working on a specific Rproject and that was the reason. now it's fixed and working.
Hi Mark! Thanks a lot for this tutorial. It is highly appreciated. Unfortunately, I ran into an error when trying to create the service account. The browser is opened as expected, and everything is confirmed, until this message is received: "Authentication complete. Please close this page and return to R.". Back in the R-Console, however, there is this: Waiting for authentication in browser... Press Esc/Ctrl + C to abort Authentication complete. i 2021-10-30 14:28:52 > Request Status Code: 404 Fehler in value[[3L]](cond) : API returned: Unknown service account I am running this with googleCloudRunner 0.4.1. Do you have any idea what the problem might be?
Sorry it didn’t work. Were you using a new GCP project you are an owner of? If so perhaps the APIs have updated - if possible could you report what code you used and your setup in a GitHub issue? Best place to get it sorted.
Very cool! Looks like it will be much simpler for someone to get started.
Jas Sohi thanks!
Amazing package and tutorial. Thanks a lot man. Following you now.
Thank you for your video. I got quite far through the cloudrunner setup, but when I get to the cr_setup_test() I am running into a roadblock on step 5 - Cloud Scheduler - R Script. All other tests pass. This is giving me an error "Error: Could not create topic:cr_rscript_2022111668980487164127-topicNo projectId set - use ps_project_set() or set GCP_PROJECT env var". I've tried searching to figure this out, but it is still unclear. Any help would be most welcome.
Refer to the googlePubSubR setup which can help walk you through this
@@MarkEdmondsonAtHome Thanks man. I was able to deploy a test. Have shifted gears to on-prem setups for a little while because the costs for the cloud infrastructure are a bit high and I'm learning a lot from the linux deployment at home. Do appreciate your response and the content. Very good video.
Thanks so much for this very nice package and guide :)
I have one issue when following your guide:
When loading the client id json file i downloaded from the google console i get the following error:
x Could not read details from client ID file - is it the right one?
x Need a clientId to be set before configuring further
Error: Setting is required
It has already found the project id.
I tried to restart R several times, but did not work.
My configuration:
type: Web application.
project only setup.
windows pc.
API's enabled.
Hope you can help :)
Thanks Mathias :) It sounds to me as you have downloaded the "Web Application" type when you actually need "Desktop App" - see explanation here: ua-cam.com/video/RrYrMsoIXsw/v-deo.html at around the 11min part
@@MarkEdmondsonAtHome That's because I actually wanna run a Shiny app, so I picked the web application. Can I still use your package for that? :)
@@Flintax5 In that case you would use two client.ids - one for deploying the Shiny (Desktop app) and another for the Shiny app itself (Web application) that is uploaded with the Shiny app to deal with the online authentication. This video only deals with the first scenario.
@@MarkEdmondsonAtHome Thanks for the reply! :)
@@Flintax5 I was wondering about this too. It works with having the 2 app types created. Just a note for the future readers of this thread, the cr_setup func will *only* see and register the json for the desktop app in Renviron, but this won't be an issue for the following steps and the deployment.
Hi Mark! Thank you for this great detailed tutorial.
I encountered an odd issue at the early stage of creating a .Renviron file. It gives me the following message when I choose "Project Only"
✔ Created local .Renviron file - please restart R then rerun setup.
but I cannot find the file in any locations. It's not in the working directory, nor in the home directory. I cannot follow the rest of the tutorial, since I've been stuck on this. Do you have any ideas why is this happening?
Hmm odd one but I guess the file is there, but its a hidden file with the dot and your folder is set up not to show it - try looking for "show hidden files" in your environment.
@@MarkEdmondsonAtHome thanks for your quick response! I checked it and that was not the case. If it existed there it should continue to next steps. Problem is it gives me the same message over and over (with or without R session restarting) and will not proceed to next steps.
Do you think reinstalling RStudio might help?!
@@meghdadghias6489 have you made sure you are using an RStudio project? If it persists feel free to raise an issue with an example on GitHub
@@MarkEdmondsonAtHome I appreciate your help and prompt answer. I was not working on a specific Rproject and that was the reason. now it's fixed and working.
Hi Mark! Thanks a lot for this tutorial. It is highly appreciated.
Unfortunately, I ran into an error when trying to create the service account. The browser is opened as expected, and everything is confirmed, until this message is received: "Authentication complete. Please close this page and return to R.". Back in the R-Console, however, there is this:
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
i 2021-10-30 14:28:52 > Request Status Code: 404
Fehler in value[[3L]](cond) : API returned: Unknown service account
I am running this with googleCloudRunner 0.4.1.
Do you have any idea what the problem might be?
Sorry it didn’t work. Were you using a new GCP project you are an owner of? If so perhaps the APIs have updated - if possible could you report what code you used and your setup in a GitHub issue? Best place to get it sorted.