Create a service account for googleCloudRunner
This will use your Google OAuth2 user to create a suitable service account
gar_setup_auth_key( email = Sys.getenv("GARGLE_EMAIL"), file = "googleauthr-auth-key.json", session_user = NULL, client_json = "GAR_CLIENT_JSON", roles = NULL, default_key = "googleauthr" )
email
: What email to open OAuth2 withfile
: Where to save the authentication filesession_user
: 1 for user level, 2 for project level, leave NULL
to be promptedclient_json
: The location of the env arg holding client jsonroles
: Whether to assign roles to the service keydefault_key
: The default name of the service keyTRUE if the file is ready to be setup, FALSE if need to stop
Other setup functions: gar_setup_auth_check()
, gar_setup_clientid()
, gar_setup_edit_renviron()
, gar_setup_env_check()
, gar_setup_menu()
, gar_setup_menu_do()
Useful links