dev/dev.R

#'////////////////////////////////////////////////////////////////////////////
#' FILE: dev.R
#' AUTHOR: David Ruvolo
#' CREATED: 2020-07-22
#' MODIFIED: 2021-03-27
#' PURPOSE: package manager
#' STATUS: ongoing
#' PACKAGES: usethis; remotes; pkgbump
#' COMMENTS: NA
#'////////////////////////////////////////////////////////////////////////////

#' ~ 0 ~
#' Packge Init

#' usethis::use_github_action_check_standard()
#' usethis::use_travis()
#' usethis::use_namespace()
#' usethis::use_description()
#' usethis::use_news_md()
#' usethis::use_testthat()

# set git ignore files
gitignore <- c(
    ".Rhistory",
    ".RData",
    ".Rproj.user",
    ".DS_STORE",
    "node_modules",
    "yarn-error.log"
)

usethis::use_git_ignore(ignores = gitignore)
usethis::use_build_ignore(
    files = c(
        gitignore,
        "config",
        "dev",
        "src",
        "node_modules",
        ".babelrc",
        ".gitignore",
        "pkgbump.config.json",
        "pnpm-lock.yaml",
        ".Rbuildignore",
        ".travis.yml",
        "iceComponents.code-workspace",
        "incontrolofeffects.png",
        "package.json",
        "postcss.config.js",
        "webpack.config.js",
        "yarn.lock",
        ".lintr"
    )
)

#' ~ 1 ~
#' Maintaining Package

# declare dependencies (pkgs)
usethis::use_package(package = "shiny", min_version = TRUE)
usethis::use_package(package = "htmltools", min_version = TRUE)
usethis::use_package(package = "rheroicons", min_version = TRUE)
usethis::use_package(package = "R6")

# document
devtools::check_man()

# check
devtools::check()
devtools::test()

# run dev app
shiny::runApp(appDir = "dev/shiny-dev/", port = 8000, launch.browser = FALSE)


# pkgbump
pkgbump::set_pkgbump(
    files = c(
        "DESCRIPTION",
        "package.json",
        "R/use_iceComponents.R"
    )
)

pkgbump::pkgbump(version = "0.1.0")
InControlofEffects/iceComponents documentation built on April 1, 2021, 5:51 a.m.