Learn R Programming

googlesheets (version 0.3.0)

gs_rename: Rename a spreadsheet

Description

Give a spreadsheet a new name. Note that file names are not necessarily unique within a folder on Google Drive.

Usage

gs_rename(ss, to, verbose = TRUE)

Arguments

ss

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

to

character string for new title of spreadsheet

verbose

logical; do you want informative messages?

Value

a googlesheet object

Examples

Run this code
# NOT RUN {
ss <- gs_gap() %>% gs_copy(to = "jekyll")
gs_ls("jekyll")                  ## see? it's there
ss <- ss %>% gs_rename("hyde")
gs_ls("hyde")                    ## see? it's got a new name
gs_delete(ss)
# }

Run the code above in your browser using DataLab