archiv.fromText: Save the links in a text file (docx, pdf, markdown) in...

Description Usage Arguments Value Examples

Description

Save the links in a text file (docx, pdf, markdown) in perma.cc or Wayback.

Usage

1
archiv.fromText(fp, method = "wayback", except = NULL)

Arguments

fp

The filepath to extract links from.

method

Either "wayback," "perma_cc" or "both".

except

A regular expression for URLs to exclude from extraction

Value

a dataframe containing the url, availability, archived url(s) and timestamp(s)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
# Wayback
archivedURLs <- archiv.fromText("testdoc.docx", except="doi\\.org\\/")

#perma.cc
set_api_key("API KEY")
set_folder_id("42")
archivedURLs <- archiv.fromText("testdoc.docx", method="perma_cc")

## End(Not run)

QualitativeDataRepository/archivr documentation built on Feb. 9, 2022, 8:32 p.m.