import_source_from_gDocs: Import a sourec from Google Documents

View source: R/import_source_from_gDocs.R

import_source_from_gDocsR Documentation

Import a sourec from Google Documents

Description

Import a sourec from Google Documents

Usage

import_source_from_gDocs(x, localFile = NULL)

Arguments

x

The URL to the source: has to be viewable publicly!

localFile

A local file (where to store a local backup).

Value

The source contents.

Examples

## 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)

gitlab-r-packages-mirror/rock documentation built on Dec. 3, 2024, 5:40 p.m.