r-googlesheets

Remote server authentication to read Googlesheets from R script not using service accounts?

限于喜欢 提交于 2020-08-08 06:13:30
问题 I'm automating a process in R that pulls, pushes, analyses & stores data in a certain way and all in all, juggles data between Googlesheets, Postgresql, and salesforce. Till now, I had it running in my system but I will need to run the scripts from my remote login ssh server on aws. The thing is though, I use 'googlesheets' package in R to auth & read google sheets but that needs an interactive environment to register/setup. I've read other answers on SO about this issue but they all suggest

Remote server authentication to read Googlesheets from R script not using service accounts?

余生颓废 提交于 2020-08-08 06:10:12
问题 I'm automating a process in R that pulls, pushes, analyses & stores data in a certain way and all in all, juggles data between Googlesheets, Postgresql, and salesforce. Till now, I had it running in my system but I will need to run the scripts from my remote login ssh server on aws. The thing is though, I use 'googlesheets' package in R to auth & read google sheets but that needs an interactive environment to register/setup. I've read other answers on SO about this issue but they all suggest

Take mail ID by pressing a button in googlesheet

僤鯓⒐⒋嵵緔 提交于 2020-06-09 05:38:10
问题 Can someone suggest me a Google Script that will make a button that will get the mail ID of the person and put it into a specified Google sheet. 回答1: This would be your script. Create a drawing like a button, via the little 3 dots you can assign it to a script, type: getEmail. If the user is a gmail user it will append the value to the target sheet. If not then it opens a prompt where someone can enter the email. function getEmail(){ const ui = SpreadsheetApp.getUi(); const ss =

Authenticating google sheets on AWS Ubuntu without browser

大兔子大兔子 提交于 2019-12-09 14:11:05
问题 I'm running R Studio on an AWS "Ubuntu Server 12.04.2" and accessing R Studio via my browser. When I try to authenticate google auth API using the package googlesheets with the code: gs_auth(token = NULL, new_user = FALSE, key = getOption("googlesheets.client_id"), secret = getOption("googlesheets.client_secret"), cache = getOption("googlesheets.httr_oauth_cache"), verbose = TRUE) The problem here is that it redirects me to browser which is of local machine (windows based). Even if I

R Peer certificate cannot be authenticated with given CA certificates, Windows

故事扮演 提交于 2019-12-04 07:01:08
When trying to import a google sheet using the gs_read() function, I get the following error message: Error in curl::curl_fetch_memory(url, handle = handle) : Peer certificate cannot be authenticated with given CA certificates I am following this vignette and get the error when using the code: oceania <- gap %>% gs_read(ws = "Oceania") I have found similar issues for Ubuntu and php , but nothing that has been able to help me. Does anyone know why I am getting this error and how to fix it? I am using R 3.3.2 and Windows 7. My colleague had the same issue and I stumbled on this post on R

Authenticating google sheets on AWS Ubuntu without browser

筅森魡賤 提交于 2019-12-03 21:30:20
I'm running R Studio on an AWS "Ubuntu Server 12.04.2" and accessing R Studio via my browser. When I try to authenticate google auth API using the package googlesheets with the code: gs_auth(token = NULL, new_user = FALSE, key = getOption("googlesheets.client_id"), secret = getOption("googlesheets.client_secret"), cache = getOption("googlesheets.httr_oauth_cache"), verbose = TRUE) The problem here is that it redirects me to browser which is of local machine (windows based). Even if I authorize it, it redirects to a URL like " http://localhost:1410/?state=blahblah&code=blahblah ". How do I