powered by
Leanpub Download Latest Version
lp_download(slug, format = c("pdf", "mobi", "epub"), api_key = NULL, secure = TRUE, verbose = TRUE, ...)
List of the result of the GET call and the content
GET
slug of the project
format of the book to download
API key for Leanpub, passed to lp_api_key
lp_api_key
passed to lp_base_url for https
lp_base_url
print diagnostic messages
additional options to pass to GET
if (lp_have_api_key()) { slug = "biostatmethods" res = lp_download(slug, verbose = FALSE, nonstop = TRUE, error = FALSE, format = "mobi") file.exists(res) }
Run the code above in your browser using DataLab