Skip to contents

Import a work from a Google Document or plain text file

Usage

import_work(
  x,
  localFile = NULL,
  format = "md",
  silent = zirconia::opts$get("silent")
)

Arguments

x

The URL to the Google Document

localFile

Optionally, the path to a local file where a local backup will be saved. Also, If x cannot be accessed, this file will be tried.

Examples

### Load example work
exampleWork <-
  zirconia::import_work(
    "1xmGCp88SapWKjp9xU2tgxwkkoFtxcD5Tm9wzxtLT1yg"
  );
#> Error in zirconia::import_work("1xmGCp88SapWKjp9xU2tgxwkkoFtxcD5Tm9wzxtLT1yg"): No {zirconia} metadata detected! Is this really a {zirconia} document?