R/tldr_get.R

# Download the appropriate documentation.

#' @export
tldr_get <- function (object, pathno=1) {
    path <- paste(.libPaths()[pathno], "tldR-docs", sep="/") 
    call <- paste(
        "git -C", 
        path, 
        c(
            "pull origin",
            paste("sparse-checkout set Packages/", object, sep="")
        )
    )
    call <- paste(call, collapse=" && ")
    system(call)
    return(path)
}
mpjuers/tldR documentation built on Feb. 12, 2021, 2:08 p.m.