R/fetchAssignments.R

Defines functions fetchAssignments

Documented in fetchAssignments

#' fetch the Assignments spreadsheet for massaging and analysis 
#' 
#' 
#' @param  url  url to fetch, deauthed (default is assignments spreadsheet)
#' @return      a tibble, via googlesheets4::read_sheet() 
#' 
#' @import      googlesheets4
#' 
#' @export
fetchAssignments <- function(url="https://docs.google.com/spreadsheets/d/1bJw_ad0PLQmLe4RvmRzsVnrOF-9Z9Xth9GTSdwO8B4M") {

  message("Calling gs4_deauth()...") 
  gs4_deauth() 
  
  message("Fetching data from ", url, " ...")
  res <- read_sheet(url)

  message("Done.")
  return(res)

}
VanAndelInstitute/ExpDesign2021 documentation built on Dec. 18, 2021, 6:15 p.m.