-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from reichlab/prepare-for-cran
Prepare for cran (mainly linting)
- Loading branch information
Showing
20 changed files
with
2,333 additions
and
2,180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ | |
^docs$ | ||
^pkgdown$ | ||
^\.github$ | ||
^\.lintr$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
|
||
name: lint | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::lintr, local::. | ||
needs: lint | ||
|
||
- name: Lint | ||
run: lintr::lint_package() | ||
shell: Rscript {0} | ||
env: | ||
LINTR_ERROR_ON_LINT: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ inst/doc | |
docs | ||
|
||
*.Rproj | ||
/dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
linters: linters_with_defaults( | ||
line_length_linter = line_length_linter(120L), | ||
commented_code_linter = NULL, | ||
object_name_linter = NULL | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,37 @@ | ||
Package: distfromq | ||
Title: Reconstruct a Distribution from a Collection of Quantiles | ||
Version: 1.0.4 | ||
Authors@R: | ||
c(person("Evan", "Ray", , "[email protected]", role = c("aut", "cre")), | ||
person("Aaron", "Gerding", , "[email protected]", role = c("aut")), | ||
person("Li", "Shandross", , "[email protected]", role = c("ctb")), | ||
person("Nick", "Reich", , "[email protected]", role = c("ctb"))) | ||
Description: Given a set of predictive quantiles from a distribution, estimate | ||
the distribution and create `d`, `p`, `q`, and `r` functions to evaluate its | ||
density function, distribution function, and quantile function, and generate | ||
random samples. On the interior of the provided quantiles, an interpolation | ||
method such as a monotonic cubic spline is used; the tails are approximated | ||
by a location-scale family. | ||
Authors@R: c( | ||
person("Evan", "Ray", , "[email protected]", role = c("aut", "cre")), | ||
person("Aaron", "Gerding", , "[email protected]", role = "aut"), | ||
person("Li", "Shandross", , "[email protected]", role = "ctb"), | ||
person("Nick", "Reich", , "[email protected]", role = "ctb") | ||
) | ||
Description: Given a set of predictive quantiles from a distribution, | ||
estimate the distribution and create `d`, `p`, `q`, and `r` functions | ||
to evaluate its density function, distribution function, and quantile | ||
function, and generate random samples. On the interior of the provided | ||
quantiles, an interpolation method such as a monotonic cubic spline is | ||
used; the tails are approximated by a location-scale family. | ||
License: GPL (>= 3) | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.2.3 | ||
Suggests: | ||
knitr, | ||
rmarkdown, | ||
dplyr, | ||
ggplot2, | ||
testthat (>= 3.0.0) | ||
URL: http://reichlab.io/distfromq/ | ||
Imports: | ||
checkmate, | ||
purrr, | ||
splines, | ||
stats, | ||
utils, | ||
zeallot | ||
VignetteBuilder: knitr | ||
Suggests: | ||
dplyr, | ||
ggplot2, | ||
knitr, | ||
rmarkdown, | ||
testthat (>= 3.0.0) | ||
VignetteBuilder: | ||
knitr | ||
Config/testthat/edition: 3 | ||
URL: http://reichlab.io/distfromq/ | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.