Complete Set Up Guide for googleCloudRunner - configuring the GCP console and your R environment

Поділитися
Вставка
  • Опубліковано 17 жов 2024

КОМЕНТАРІ • 19

  • @jsohi
    @jsohi 3 роки тому +1

    Very cool! Looks like it will be much simpler for someone to get started.

  • @micharro4357
    @micharro4357 Рік тому

    Amazing package and tutorial. Thanks a lot man. Following you now.

  • @cimplyllc
    @cimplyllc Рік тому

    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
      @MarkEdmondsonAtHome  Рік тому

      Refer to the googlePubSubR setup which can help walk you through this

    • @cimplyllc
      @cimplyllc Рік тому

      @@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.

  • @Flintax5
    @Flintax5 3 роки тому +1

    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 :)

    • @MarkEdmondsonAtHome
      @MarkEdmondsonAtHome  3 роки тому

      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
      @Flintax5 3 роки тому

      @@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? :)

    • @MarkEdmondsonAtHome
      @MarkEdmondsonAtHome  3 роки тому +1

      @@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
      @Flintax5 3 роки тому

      @@MarkEdmondsonAtHome Thanks for the reply! :)

    • @alex_papageo
      @alex_papageo 3 роки тому

      @@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.

  • @meghdadghias6489
    @meghdadghias6489 2 роки тому

    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?

    • @MarkEdmondsonAtHome
      @MarkEdmondsonAtHome  2 роки тому +2

      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.

    • @meghdadghias6489
      @meghdadghias6489 2 роки тому

      @@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
      @MarkEdmondsonAtHome  2 роки тому +1

      @@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

    • @meghdadghias6489
      @meghdadghias6489 2 роки тому +1

      ​@@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.

  • @skillfactory8502
    @skillfactory8502 3 роки тому

    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?

    • @MarkEdmondsonAtHome
      @MarkEdmondsonAtHome  3 роки тому

      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.