doc: Retrieve a document

Description Usage Arguments Details Value Author(s) References See Also

View source: R/docs.r

Description

Retrieve a document

Usage

1
2
3
doc(doc, fmt = "original", url_only = TRUE, ...)

doc_thumbnail(doc, width = NULL, height = NULL, url_only = TRUE, ...)

Arguments

doc

A document id (or object of class “scribd_doc”) to retrieve.

fmt

One of “pdf”, “txt”, or “original” (the default).

width

For doc_thumbnail, the width of the thumbnail in pixels.

height

For doc_thumbnail, the height of the thumbnail in pixels.

url_only

A logical indicating whether to only return the document's URL (the default). If FALSE, the document is downloaded and returned as a raw vector.

...

Other arguments passed to HTTP request functions.

Details

doc returns the URL from which a Scribd document can be downloaded. If url_only=FALSE, the document itself is downloaded from that URL and returned as a raw vector. doc_thumbnail does the same, but for the thumbnail “cover image” for the document.

Value

Either a character string containing a URL or the document (or its thumbnail) as a raw vector.

Author(s)

Thomas J. Leeper

References

API Reference: getDownloadUrl

See Also

doc_stats, doc_settings, doc_change, doc_delete

doc_upload, upload_thumbnail


cloudyr/rscribd documentation built on May 13, 2019, 8:22 p.m.