9.2 Google Drive - Openscapes/2021-noaa-nmfs GitHub Wiki

Here is a repo that shows a simple example of downloading files from a Google Drive folder. It shows you how to set it up so that you can download files from our work Google Drive folder from R. This is happening locally (meaning on your computer). It is just like you downloading the files except that you are telling R to do the work for you---so that you can automate tasks and run everything with one script (say).

This was inspired from notes from Emily Markowitz (Session 2 speaker) on using data from Google Drive in your R projects:

Google Drive package

AFSCDataReport: downloading everything collaborators have worked on from a folder in google drive

AFSCDataReport: using text file downloaded from google drive (not actually directly google drive specific)

AFSCDataReport: using a spreadsheet downloaded from google drive (not actually directly google drive specific)

GAPsurveyTemperatureMap: downloading a specific spreadsheet of data taken in the field from google drive

GAPsurveyTemperatureMap: uploading final products to google drive for the comms team

More examples

  • a repo for a website
  • my CV that references a single google sheet for all of it's content! It's mostly for when I talk to classrooms so students can learn more about me and award/fellowship/grant applications, but also a fun framework example that I think I can use for a few other projects. The real magic happens in this run.R script. Inspiration was from building a data drive cv with r and other similar blogs.
  • sharing a google doc site, code,
  • a google form site, code,
  • embedding a Google Calendar in a site
    • one public calendar site, code
    • a mix of public and private calendars site What users see depends on whether they have permission to see the calendar (which is set up-stream). The code has some tips on adding multiple calendars and the FAQ has some info for viewers.
  • a spreadsheet site, code in a github page! To make it truly accessible, you have to share it through a personal email, but otherwise it's easy peasy!