Science Score: 23.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
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 1 committers (100.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (18.3%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: christopherkenny
- License: other
- Language: R
- Default Branch: main
- Homepage: http://christophertkenny.com/jot/
- Size: 721 KB
Statistics
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Created almost 4 years ago
· Last pushed almost 4 years ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# jot
[](https://github.com/christopherkenny/jot/actions/workflows/R-CMD-check.yaml)
[](https://christopherkenny.r-universe.dev/jot)
[](https://lifecycle.r-lib.org/articles/stages.html#stable)
[](https://CRAN.R-project.org/package=jot)

The goal of `jot` is to improve reproducability by allowing you to track statistics needed for an Rmd but are too big to open.
Some statistics require summarizing large datasets or take a long time to calculate.
`jot` approaches this with the following organizing principles:
1. Notes should be lockable, so that tests don't accidentally overwrite existing statistics.
2. We want to know when each statistic was last updated.
3. For collaborative projects, we want to know who last updated each statistic.
4. Records should play well with GitHub, which is done by representing notes as `yaml`.
## Installation
You can install the development version of `jot` like so:
``` r
remotes::install_github('christopherkenny/jot')
```
You can also install the stable version of `jot` from CRAN:
```r
install.packages('jot')
```
## Example
The normal workflow with jot is two staged, first is creating notes and second is reading them.
### To create notes:
First, we make a notepad, giving it a location and a title.
```{r example}
library(jot)
path <- tempfile(fileext = '.yaml')
jot_new_pad(pad = path, title = 'example')
```
The contents of the new pad will look like:
```{verbatim}
title: example
locked: FALSE
home: the_path.yaml
```
By creating a new notepad, we set it to be the active notepad.
The active notepad is represented as a path.
```{r}
jot_active()
```
To write to the notepad can use `jot()`:
```{r}
jot(note = 3, name = 'estimate')
```
By default, it writes to the active notepad, which is now:
```{verbatim}
title: example
locked: no
home: the\path.yaml
estimate:
last_update: 1659545779
user: chris
content: 3.0
quoted: no
```
```{r}
jot(note = 4, name = 'estimate')
```
So, the notepad will still say:
```{verbatim}
title: example
locked: no
home: the\path.yaml
estimate:
last_update: 1659545779
user: chris
content: 3.0
quoted: no
```
We can fix that by explicitly overwriting.
```{r}
jot(note = 4, name = 'estimate', overwrite = TRUE)
```
This gives us:
```{verbatim}
title: example
locked: no
home: the\path.yaml
estimate:
last_update: 1659545993
user: chris
content: 4.0
quoted: no
```
We can add other values as long as they have a different name:
```{r}
jot(note = list(a = 1, b = 2, c = 3), name = 'list_abc', overwrite = TRUE)
```
We can even add fancier things like `data.frame`s, but this should be limited to small things!
The goal of `jot` is to store summaries and statistics, not all of your data.
```{r}
jot(data.frame(col1 = 1, col2 = 2, col3 = 3), 'df')
```
Once we're happy with the notes, we should lock the notepad.
```{r}
jot_lock()
```
This sets the locked value to TRUE (and yes in the `yaml`).
```{verbatim}
title: example
locked: yes
home: the\path.yaml
estimate:
last_update: 1659545993
user: chris
content: 4.0
quoted: no
list_abc:
last_update: 1659546469
user: chris
content:
a: 1.0
b: 2.0
c: 3.0
quoted: no
```
### To read notes:
In the setup chunk for an Rmd, we add:
```{r}
library(jot)
jot_activate(pad = path)
```
Here, we use the same temp path that we were writing to above, but generally this should be something within the project.
Now, we can read out values.
We can skim the note and report back everything:
```{r}
jot_skim()
```
Or, we can select a specific element that we've stored.
```{r}
jot_read(name = 'estimate')
```
It returns the object of the same type as was inputted, so `list_abc` is a list:
```{r}
jot_read(name = 'list_abc')
```
Owner
- Name: Christopher T. Kenny
- Login: christopherkenny
- Kind: user
- Location: Cambridge, MA
- Company: Harvard University
- Website: https://www.christophertkenny.com
- Twitter: chris_t_kenny
- Repositories: 78
- Profile: https://github.com/christopherkenny
Redistricting and rstats. Harvard University, PhD Candidate, Department of Government. Cornell '19.
GitHub Events
Total
- Push event: 2
Last Year
- Push event: 2
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Christopher Kenny | c****4@c****u | 9 |
Committer Domains (Top 20 + Academic)
cornell.edu: 1
Issues and Pull Requests
Last synced: 11 months 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
Packages
- Total packages: 1
-
Total downloads:
- cran 195 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: jot
Jot Down Values for Later
- Homepage: http://christophertkenny.com/jot/
- Documentation: http://cran.r-project.org/web/packages/jot/jot.pdf
- License: MIT + file LICENSE
-
Latest release: 0.0.5
published 11 months ago
Rankings
Forks count: 28.8%
Dependent packages count: 29.8%
Stargazers count: 31.7%
Dependent repos count: 35.5%
Average: 42.0%
Downloads: 84.5%
Maintainers (1)
Last synced:
11 months ago
Dependencies
.github/workflows/R-CMD-check.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
- cli * imports
- yaml * imports