Giter Club home page Giter Club logo

dhmisc's Introduction

dhmisc

CRAN status Lifecycle: experimental

dhmisc is a collection of functions/tools I like to use but are either not present in any R packages I know of or their implementation in existing R packages don’t fulfill my needs.

Installation

Development version:

install.packages("dhmisc", repos = "https://dhersz.r-universe.dev")

# or
# install.packages("remotes")
remotes::install_github("dhersz/dhmisc")

Utilities

Functions

  • bump_pkg_version()
    Automatically bumps package version (either the major, minor, patch or dev component) and conditionally updates package metadata. Helper around desc::desc_bump_version() and codemetar::write_codemeta().

  • brazil_rapid_transit()
    Downloads Brazil’s rapid transit corridors and stops made available by ITDP Brasil at Mobilidados.

Pre-commit hooks

To use pre-commit hooks in R packages please see {precommit} R package installation and usage instructions. To use the hooks made available here you will need to run precommit::use_precommit() and configure .pre-commit-config.yaml as shown below (please remove any hooks you don’t want to use from the list):

repos:
-   repo: https://github.com/dhersz/dhmisc
    rev: v0.0.0.9014
    hooks:
    -   id: mod-codemeta-description-updated
    -   id: mod-readme-rmd-rendered
    -   id: version-bumped
  • mod-codemeta-description-updated and mod-readme-rmd-rendered
    Copies of codemeta-description-updated and readme-rmd-rendered, available in {precommit}, with adapted shebang to work on my computer.

  • version-bumped
    Checks if the package version has been bumped from last commit and if both DESCRIPTION and codemeta.json are staged for commit.

Acknowledgement

Credits for mod-codemeta-description-updated and mod-readme-rmd-rendered pre-commit hooks go to Lorenz Walthert, {precommit} maintainer.

dhmisc's People

Contributors

dhersz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.