Questions tagged [googlesheets4]

Access Google Sheets using the Sheets API V4

googlesheets4 provides an R interface to Google Sheets via the Sheets API v4. It is a reboot of an earlier package called googlesheets.

82 questions
0
votes
0 answers

How to automatically select pre - authorized account in googlesheets4 in R when running automated code?

I'm trying to figure out what would be the method to automatically allow the googlesheet4 package to choose my pre - authorized account to modify a particular google sheet. For example - I want to run the following once a day…
0
votes
1 answer

Write to Google sheet skipping 1st row

When using the package googlesheets4 is there any method for writing data to a sheet skipping the first row so that the data being written to a sheet starts at row 2? I am hoping to leverage something similar to when you read a sheet and utilize ex.…
Zack
  • 100
  • 7
0
votes
0 answers

Retrieve Google Sheet with googlesheets4 when authorization is to a non-google email account

A client has shared a bunch of google sheets with me using my non-google email. When I click on the link to the sheet, google sends me a 6-digit code via that email which I type in when google prompts me prior to opening the sheet. I want to…
user2547973
  • 343
  • 2
  • 9
0
votes
0 answers

Replace a sheet at the same googlesheet URL using R

I have a dataframe that I want to populate a googlesheet with using R. This is to update a datasheet used by other people in my working team. I want this sheet to be located at the same URL each time its written (not the same folder URL, but the…
ksweet
  • 93
  • 5
0
votes
1 answer

Invalid JSON payload received. Unknown name "responce[values]"

I am trying to update a cell in a google sheets spreadsheet using the api with node js, and it gives me an error saying 'Invalid JSON payload received. Unknown name "responce[values]"'. async function setSquare(){ let array = [['2']]; const…
0
votes
0 answers

Google Sheet API throws invalid data error

I try to implement a feature to update Google Sheet by a button click in a MAUI app. Below are the related code: GoogleSheetHelper class: using Google.Apis.Auth.OAuth2; using Google.Apis.Services; using Google.Apis.Sheets.v4; using…
BabyHai
  • 89
  • 1
  • 9
0
votes
1 answer

Connection to Google sheets API from .net Maui application

Greetings to all of you. I have This code working fine to connect to Google sheets API from WPF (Desktop Application C# ) application. My question: Is it possible to modify it to work in .net Maui application( Application Mobile , Desktop C#) My…
0
votes
0 answers

Replacing NULL values from Googlesheet in R

I'm importing a googlesheet into R using #install.packages("googlesheets4") library(googlesheets4) df<-read_sheet("https://docs.google.com/spreadsheets/d/1f29HJXZAIiWOOkOQd1RYrgCyJY633Njip0nUg8DXLN8/edit#gid=0") The above links to a sheet with a…
McMahok
  • 348
  • 2
  • 13
0
votes
0 answers

googlesheets4 (R package) oauth token suddenly stopped working

I have started getting this error from today when I do any write operation on my googlesheets... while till a few days back everything was working fine. > gs4_create() ✔ Creating new Sheet: petalless-spider. Auto-refreshing stale OAuth token. Error…
Lazarus Thurston
  • 1,197
  • 15
  • 33
0
votes
1 answer

googlesheets4 - specify col_types using vector

I am trying to read a google sheet with many columns (gs1) into R. I also have a separate data frame in R (df_col) that has a list of the columns in gs1 along with their formats. Is there a way to read gs1 into R using the columns formats specified…
Ant
  • 313
  • 5
  • 19
0
votes
1 answer

Deleting always the first row in a shiny CRUD app only after adding preexsitent data

I am stuck and need help. I am working with this gist https://gist.github.com/gluc/d39cea3d11f03542970b Basically in a shiny app it provides the possibility to make CRUD maneuvers and it works perfect. I now managed to store the data on googlesheets…
TarJae
  • 72,363
  • 6
  • 19
  • 66
0
votes
2 answers

How to Update a Google Sheet directly in R without creating a CSV file in the computer

I am trying to develop a web scraping code. I need to automate it and run it in the Google Cloud daily. The daily web scrapped data have to be saved in a Google sheet. Following is the relevant part of the code that I have developed to save data in…
0
votes
0 answers

'gargle_oauth_cache' command from googlesheets4, R package

I'm new to using the 'googlesheets4' package, from R, so I'm not able to use it in a shiny project. I can use the app locally, however when I put it on the web an error appears. From the research I've done, it seems to me that it has something to do…
0
votes
1 answer

How to update Google sheet in R

I want to web scrape some data from a web page daily. I need to save it on a Google sheet. Then I need to update this data set daily (by running the Web scraping code) and update the same Google sheet with new data, replacing the old data. I do not…
0
votes
1 answer

In R using googlesheets4 how do you write a new spreadsheet to an existing workbook?

First let me apologize for using Excel terms for Google Sheets. I want to grab data from a single sheet in a workbook, do something, then write a new sheet in the same workbook. For example; library(googlesheets4) pot <-…
Dustin
  • 183
  • 7