lp_download {leanpubr} | R Documentation |
Leanpub Download Latest Version
Description
Leanpub Download Latest Version
Usage
lp_download(slug, format = c("pdf", "mobi", "epub"), api_key = NULL,
secure = TRUE, verbose = TRUE, ...)
Arguments
slug |
slug of the project |
format |
format of the book to download |
api_key |
API key for Leanpub, passed to |
secure |
passed to |
verbose |
print diagnostic messages |
... |
additional options to pass to |
Value
List of the result of the GET
call and
the content
Note
See https://leanpub.com/help/api
Examples
if (lp_have_api_key()) {
slug = "biostatmethods"
res = lp_download(slug, verbose = FALSE, nonstop = TRUE, error = FALSE,
format = "mobi")
file.exists(res)
}
[Package leanpubr version 0.3.1 Index]