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
Miscellaneous R functions which I load in my .Rprofile
Basic Info
- Host: GitHub
- Owner: mpadge
- License: other
- Language: R
- Default Branch: main
- Homepage: https://mpadge.github.io/mpmisc
- Size: 277 KB
Statistics
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
- Releases: 0
Created almost 6 years ago
· Last pushed over 1 year ago
Metadata Files
Readme
License
Codemeta
README.Rmd
# mpmisc
[](https://github.com/mpadge/mpmisc/actions)
Miscellaneous R functions which I load in my `.Rprofile`, including functions to
- Increment development version
- Set up multiple git remotes
- Add pre-commit hooks to ensure package version is incremented on each commit
### Increment development version
One function `increment_dev_version()` is an alternative version of
[`usethis::use_dev_version()`](https://usethis.r-lib.org/reference/use_version.html),
but adapted to my workflow of incrementing the fourth component of version
numbers for every single commit. I have this function aliased to `incr="Rscript
-e 'mpmisc::increment_dev_version()'"`, so simply have to type `incr` to
automatically increment my version and update `codemeta.json` (if that file
exists).
### Set up git remotes
I mirror many repositories on various git remote services, including
[Sourcehut](https://sourcehut.org), [GitLab](https://gitlab.com),
[BitBucket](https://bitbucket.org), and [GitHub](https://github.com). The
`add_git_remotes()` function automatically adds the appropriate `remote`
entries for any locations in which a repository is mirrored. I use a single
`git push` alias to mirror that command to all listed remotes. This
`add_git_remotes()` function saves me the trouble of having to manually specify
these for each new repository.
### Pre-Commit Hooks
I use the [`precommit` package](https://github.com/lorenzwalthert/precommit/)
to implement pre-commit hooks, including a personalised hook to ensure that the
development version number has been incremented using the above
`increment_dev_version()` function on each commit. This requires installing the
[`pre-commit` library](https://pre-commit.com), and the [`precommit` R
package](https://github.com/lorenzwalthert/precommit/). This repository then
has both:
1. A version of `.pre-commit-config.yaml` modified from the original version in
the `precommit` R package, primarily through the addition of:
```
- id: description version
name: Version has been incremented in DESCRIPTION
entry: inst/precommit/description
language: script
```
2. The corresponding `inst/precommit/description` file which checks first that
`DESCRIPTION` has been modified, and secondly that the modification includes
a change to `"Version"`.
In practice, my `description` hook lives in a general location at
`~/bin/precommit/description` rather than within any particular repo, with the
`entry` value reflecting this location.
Owner
- Name: mark padgham
- Login: mpadge
- Kind: user
- Location: Münster, Germany
- Company: @rOpenSci
- Website: https://mpadge.github.io
- Repositories: 194
- Profile: https://github.com/mpadge
rOpenSci software review lead
CodeMeta (codemeta.json)
{
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"identifier": "mpmisc",
"description": "Miscellaneous functions which I load in my '.Rprofile'.",
"name": "mpmisc: Miscellaneous functions which I load in my '.Rprofile'",
"codeRepository": "https://github.com/mpadge/mpmisc",
"issueTracker": "https://github.com/mpadge/mpmisc/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.1.1.010",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.3.0 (2023-04-21)",
"author": [
{
"@type": "Person",
"givenName": "Mark",
"familyName": "Padgham",
"email": "mark.padgham@email.com"
}
],
"maintainer": [
{
"@type": "Person",
"givenName": "Mark",
"familyName": "Padgham",
"email": "mark.padgham@email.com"
}
],
"softwareSuggestions": [
{
"@type": "SoftwareApplication",
"identifier": "curl",
"name": "curl",
"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=curl"
},
{
"@type": "SoftwareApplication",
"identifier": "httr",
"name": "httr",
"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=httr"
},
{
"@type": "SoftwareApplication",
"identifier": "pkgbuild",
"name": "pkgbuild",
"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=pkgbuild"
},
{
"@type": "SoftwareApplication",
"identifier": "precommit",
"name": "precommit",
"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=precommit"
}
],
"softwareRequirements": {
"1": {
"@type": "SoftwareApplication",
"identifier": "gert",
"name": "gert",
"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=gert"
},
"2": {
"@type": "SoftwareApplication",
"identifier": "ghql",
"name": "ghql",
"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=ghql"
},
"3": {
"@type": "SoftwareApplication",
"identifier": "here",
"name": "here",
"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=here"
},
"4": {
"@type": "SoftwareApplication",
"identifier": "jsonlite",
"name": "jsonlite",
"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=jsonlite"
},
"5": {
"@type": "SoftwareApplication",
"identifier": "lubridate",
"name": "lubridate",
"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=lubridate"
},
"6": {
"@type": "SoftwareApplication",
"identifier": "rappdirs",
"name": "rappdirs",
"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=rappdirs"
},
"SystemRequirements": {}
},
"fileSize": "42.319KB",
"readme": "https://github.com/mpadge/mpmisc/blob/main/README.md",
"contIntegration": "https://github.com/mpadge/mpmisc/actions"
}
GitHub Events
Total
- Watch event: 1
Last Year
- Watch event: 1
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| mpadge | m****m@e****m | 113 |
Committer Domains (Top 20 + Academic)
email.com: 1
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: 18 days
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.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
- mpadge (1)
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Dependencies
.github/workflows/check-standard.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action 4.1.4 composite
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- gert * imports
- ghql * imports
- here * imports
- jsonlite * imports
- lubridate * imports
- rappdirs * imports
- httr * suggests
- precommit * suggests
.hooks/description
cran
inst/precommit/description
cran