Skip to content

Commit e41818c

Browse files
authored
Merge pull request #5 from mdlincoln/fix-desc-name
correctly include family name
2 parents 5aefcc5 + b6928db commit e41818c

15 files changed

+250
-159
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
^appveyor\.yml$
88
^codecov\.yml$
99
^cran-comments\.md$
10+
^\.github$

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yaml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: R-CMD-check.yaml
10+
11+
permissions: read-all
12+
13+
jobs:
14+
R-CMD-check:
15+
runs-on: ubuntu-latest
16+
env:
17+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
18+
R_KEEP_PKG_SOURCE: yes
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: r-lib/actions/setup-r@v2
23+
with:
24+
use-public-rspm: true
25+
26+
- uses: r-lib/actions/setup-r-dependencies@v2
27+
with:
28+
extra-packages: any::rcmdcheck
29+
needs: check
30+
31+
- uses: r-lib/actions/check-r-package@v2
32+
with:
33+
upload-snapshots: true
34+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

.github/workflows/test-coverage.yaml

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
name: test-coverage.yaml
10+
11+
permissions: read-all
12+
13+
jobs:
14+
test-coverage:
15+
runs-on: ubuntu-latest
16+
env:
17+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: r-lib/actions/setup-r@v2
23+
with:
24+
use-public-rspm: true
25+
26+
- uses: r-lib/actions/setup-r-dependencies@v2
27+
with:
28+
extra-packages: any::covr, any::xml2
29+
needs: coverage
30+
31+
- name: Test coverage
32+
run: |
33+
cov <- covr::package_coverage(
34+
quiet = FALSE,
35+
clean = FALSE,
36+
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
37+
)
38+
covr::to_cobertura(cov)
39+
shell: Rscript {0}
40+
41+
- uses: codecov/codecov-action@v4
42+
with:
43+
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
44+
file: ./cobertura.xml
45+
plugin: noop
46+
disable_search: true
47+
token: ${{ secrets.CODECOV_TOKEN }}
48+
49+
- name: Show testthat output
50+
if: always()
51+
run: |
52+
## --------------------------------------------------------------------
53+
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
54+
shell: bash
55+
56+
- name: Upload test results
57+
if: failure()
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: coverage-test-failures
61+
path: ${{ runner.temp }}/package

.travis.yml

-8
This file was deleted.

DESCRIPTION

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Type: Package
22
Package: salty
33
Title: Turn Clean Data into Messy Data
4-
Version: 0.1.0.9000
4+
Version: 0.1.1
55
Authors@R: c(
6-
person("Matthew Lincoln", email = "[email protected]",
6+
person("Matthew", "Lincoln", email = "[email protected]",
77
role = c("aut", "cre"),
88
comment = c(ORCID = "0000-0002-4387-3384")))
99
Description: Take real or simulated data and salt it with errors commonly
@@ -23,6 +23,6 @@ Suggests:
2323
Encoding: UTF-8
2424
LazyData: true
2525
Roxygen: list(markdown = TRUE)
26-
RoxygenNote: 6.1.0
26+
RoxygenNote: 7.3.0
2727
URL: https://github.com/mdlincoln/salty
2828
BugReports: https://github.com/mdlincoln/salty/issues

R/salty-package.R

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#' @keywords internal
2+
"_PACKAGE"
3+
4+
## usethis namespace: start
15
#' salty: Turn Clean Data Into Messy Data
26
#'
37
#' Insert, delete, replace, and substitute bits of your data with messy values.
@@ -26,4 +30,5 @@
2630
#'
2731
#' @docType package
2832
#' @name salty
33+
## usethis namespace: end
2934
NULL

README.Rmd

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ knitr::opts_chunk$set(
1414

1515
# salty
1616

17+
<!-- badges: start -->
1718
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/salty)](https://cran.r-project.org/package=salty)
1819
[![Downloads, grand total](http://cranlogs.r-pkg.org/badges/grand-total/salty)](https://cranlogs.r-pkg.org/)
1920
[![lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)
20-
[![Travis-CI Build Status](https://travis-ci.org/mdlincoln/salty.svg?branch=master)](https://travis-ci.org/mdlincoln/salty)
21-
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/mdlincoln/salty?branch=master&svg=true)](https://ci.appveyor.com/project/mdlincoln/salty)
22-
[![Coverage Status](https://img.shields.io/codecov/c/github/mdlincoln/salty/master.svg)](https://codecov.io/github/mdlincoln/salty?branch=master)
21+
[![R-CMD-check](https://github.com/mdlincoln/salty/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/mdlincoln/salty/actions/workflows/R-CMD-check.yaml)
22+
[![Codecov test coverage](https://codecov.io/gh/mdlincoln/salty/branch/master/graph/badge.svg)](https://app.codecov.io/gh/mdlincoln/salty?branch=master)
23+
<!-- badges: end -->
2324

2425
When teaching students how to clean data, it helps to have data that isn't _too_ clean already.
2526
**salty** offers functions for "salting" clean data with problems often found in datasets in the wild, such as:

0 commit comments

Comments
 (0)