Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gs_copy

Copy an existing spreadsheet


Description

You can copy a spreadsheet that you own or a sheet owned by a third party that has been made accessible via the sharing dialog options. This function calls the Google Drive API.

Usage

gs_copy(from, to = NULL, verbose = TRUE)

Arguments

from

a registered Google spreadsheet, i.e. a googlesheet object

to

character string giving the new title of the sheet; if NULL, then the copy will be titled "Copy of ..."

verbose

logical; do you want informative messages?

Examples

## Not run: 
# copy the Gapminder example sheet
gap_ss <- gs_copy(gs_gap(), to = "Gapminder_copy")
gap_ss
gs_delete(gap_ss)

## End(Not run)

googlesheets

Manage Google Spreadsheets from R

v0.3.0
MIT + file LICENSE
Authors
Jennifer Bryan [aut, cre], Joanna Zhao [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.