View source: R/import_source_from_gDocs.R
import_source_from_gDocs | R Documentation |
Import a sourec from Google Documents
import_source_from_gDocs(x, localFile = NULL)
x |
The URL to the source: has to be viewable publicly! |
localFile |
A local file (where to store a local backup). |
The source contents.
## Not run:
### Note that this will require an active
### internet connection!
gDocs_url <-
paste0(
"https://docs.google.com/document/d/",
"1iACYjV7DdCjOmfgX6KEMtCcCjuuXD3iuikTSGWtsK84",
"/edit?usp=sharing"
);
exampleSource <-
import_source_from_gDocs(
gDocs_url
);
### Show the downloaded file:
exampleSource;
### Parse the source:
parsedExampleSource <-
rock::parse_source(exampleSource);
### Imported; the comments are gone:
parsedExampleSource$qdt$utterances_raw;
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.