Skip to content

Commit

Permalink
testing gs4_deauth
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenpp7 committed Apr 7, 2021
1 parent 6a3eb99 commit 7e18946
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 113 deletions.
6 changes: 2 additions & 4 deletions R/divewatch.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#'
#' @param data The URL ID of the database in google sheets, if no URL is provided a mock dataset generated
#' by the test_data function will be read
#' @param email email account that will be used to access the Logbook in Google Spreadsheet
#'
#' @author Ruben Perez Perez
#'
Expand All @@ -23,9 +22,8 @@
#' }


divewatch <- function(data = NA,
email = NA){
prep_data(data, email)
divewatch <- function(data = NA){
prep_data(data)
download.file("https://raw.githubusercontent.com/rubenpp7/divewatchr/master/files/overview.Rmd",
"overview.Rmd")
render("overview.Rmd")
Expand Down
6 changes: 3 additions & 3 deletions R/prep_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#' @param data The URL ID of the database in google sheets, if no URL is provided a mock dataset generated
#' by the test_data function will be read
#' @param path directory location where the files will be read from or written into
#' @param email email account that will be used to access the Logbook in Google Spreadsheet
#'
#' @author Ruben Perez Perez
#'
Expand All @@ -30,15 +29,16 @@


prep_data <- function (data = NA,
email = NA,
#email = NA,
path = getwd()){

### READ DATA
#-------------

if(!is.na(data)){
# From Google sheets
gs4_auth(email)
#gs4_auth(email)
gs4_deauth()
(scuba_log <- read_sheet(data, sheet = "logbook", na = ""))
(scuba_geo <- read_sheet(data, sheet = "coordinates", na = ""))
(scuba_typ <- read_sheet(data, sheet = "divetypes", na = ""))
Expand Down
100 changes: 0 additions & 100 deletions divewatchrshiny/app.R

This file was deleted.

4 changes: 1 addition & 3 deletions man/divewatch.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions man/prep_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7e18946

Please sign in to comment.