R/app-.R

Defines functions bin_dir app_dir

app_dir <- function(app = NULL, create = FALSE, dir = data_dir()) {
    path <- dir_create(file.path(dir, "apps"))
    if (is.null(app)) {
        path
    } else {
        path <- file.path(path, app)
        if (create) dir_create(path) else path
    }
}

bin_dir <- function(dir = data_dir()) dir_create(file.path(dir, "bin"))

Try the blit package in your browser

Any scripts or data that you put into this service are public.

blit documentation built on April 12, 2025, 1:16 a.m.