Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.1%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

Basic Info
  • Host: GitHub
  • Owner: dhersz
  • Language: R
  • Default Branch: master
  • Size: 27.3 KB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 4
Created over 5 years ago · Last pushed almost 5 years ago
Metadata Files
Readme Codemeta

README.Rmd

---
output: github_document
---

```{r, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)
```

# dhmisc

[![CRAN status](https://www.r-pkg.org/badges/version/dhmisc)](https://CRAN.R-project.org/package=dhmisc)
[![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/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:

```{r, eval=FALSE}
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](https://mobilidados.org.br/map-of-rapid-transit-in-brazil).
  
### Pre-commit hooks

To use pre-commit hooks in R packages please see `{precommit}` R package [installation and usage instructions](https://github.com/lorenzwalthert/precommit#installation). 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):

```yaml
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](https://github.com/lorenzwalthert), [`{precommit}`](https://github.com/lorenzwalthert/precommit) maintainer.

Owner

  • Name: Daniel Herszenhut
  • Login: dhersz
  • Kind: user
  • Company: Ipea - Institute for Applied Economic Research

research assistant @ipeaGIT

CodeMeta (codemeta.json)

{
  "@context": [
    "https://doi.org/10.5063/schema/codemeta-2.0",
    "http://schema.org"
  ],
  "@type": "SoftwareSourceCode",
  "identifier": "dhmisc",
  "description": "Utility functions frequently used by dhersz.",
  "name": "dhmisc: Dhersz Utility Functions",
  "codeRepository": "https://github.com/dhersz/dhmisc",
  "issueTracker": "https://github.com/dhersz/dhmisc/issues",
  "license": "https://spdx.org/licenses/GPL-3.0",
  "version": "0.0.0.9016",
  "programmingLanguage": {
    "@type": "ComputerLanguage",
    "name": "R",
    "url": "https://r-project.org"
  },
  "runtimePlatform": "R version 4.1.0 (2021-05-18)",
  "author": [
    {
      "@type": "Person",
      "givenName": "Daniel",
      "familyName": "Herszenhut",
      "email": "dhersz@gmail.com",
      "@id": "https://orcid.org/0000-0001-8066-1105"
    }
  ],
  "contributor": {},
  "copyrightHolder": {},
  "funder": {},
  "maintainer": [
    {
      "@type": "Person",
      "givenName": "Daniel",
      "familyName": "Herszenhut",
      "email": "dhersz@gmail.com",
      "@id": "https://orcid.org/0000-0001-8066-1105"
    }
  ],
  "softwareSuggestions": [],
  "softwareRequirements": [
    {
      "@type": "SoftwareApplication",
      "identifier": "codemetar",
      "name": "codemetar",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=codemetar"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "data.table",
      "name": "data.table",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=data.table"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "desc",
      "name": "desc",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=desc"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "git2r",
      "name": "git2r",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=git2r"
    },
    {
      "@type": "SoftwareApplication",
      "identifier": "sf",
      "name": "sf",
      "provider": {
        "@id": "https://cran.r-project.org",
        "@type": "Organization",
        "name": "Comprehensive R Archive Network (CRAN)",
        "url": "https://cran.r-project.org"
      },
      "sameAs": "https://CRAN.R-project.org/package=sf"
    }
  ],
  "fileSize": "13.492KB",
  "developmentStatus": "https://www.tidyverse.org/lifecycle/#experimental",
  "readme": "https://github.com/dhersz/dhmisc/blob/master/README.md"
}

GitHub Events

Total
Last Year

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 18
  • Total Committers: 1
  • Avg Commits per committer: 18.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
dhersz d****z@g****m 18

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels