Skip to content

Commit

Permalink
wrap hemibrainr_google_login() in try
Browse files Browse the repository at this point in the history
* see #56
* This is a dangerous thing to put in .onAttach
  • Loading branch information
jefferis authored Mar 24, 2023
1 parent 514a3fe commit e60b5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}

# Set googlesheets API key
hemibrainr_google_login()
try(hemibrainr_google_login())

# Set Google sheets of interest
hemibrainr_matching_gsheet = ifelse(!is.null(getOption("hemibrainr_matching_gsheet")),getOption("hemibrainr_matching_gsheet"),"1OSlDtnR3B1LiB5cwI5x5Ql6LkZd8JOS5bBr-HTi0pOw")
Expand Down

0 comments on commit e60b5f6

Please sign in to comment.