This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add private sheet, owned by rpackagetest
we should NOT be able to access this after we revoke authorization during testing
- Loading branch information
jennybc
committed
May 27, 2015
1 parent
06a7bc5
commit 505a569
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' --- | ||
#' output: md_document | ||
#' --- | ||
|
||
library("googlesheets") | ||
suppressPackageStartupMessages(library("dplyr")) | ||
|
||
## damn you render and your hard-wiring of wd = dir where file lives! | ||
## if I don't commit this abomination, existing .httr-oauth cannot be found :( | ||
if ((getwd() %>% basename) == "data-for-demo") { | ||
setwd("..") | ||
} | ||
|
||
cars_ss <- gs_new("test-gs-cars-private", ws_title = "cars", | ||
input = head(mtcars), header = TRUE, trim = TRUE) | ||
cars_ss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters