Skip to content

Commit fb8d28c

Browse files
authored
Merge pull request #67 from JonasMoss/release/1.2.0
Prepare 1.2.0 release
2 parents fe6af0c + 2c5a7ec commit fb8d28c

54 files changed

Lines changed: 749 additions & 1289 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.Rbuildignore

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
1-
^.*\.Rproj$ # Automatically added by RStudio,
2-
^\.Rproj\.user$ # used for temporary files.
3-
^README\.Rmd$ # An Rmarkdown file used to generate README.md
4-
^cran-comments\.md$ # Comments for CRAN submission
5-
^NEWS\.md$ # A news file written in Markdown
6-
^\.travis\.yml$ # Used for continuous integration testing with travis
1+
^.*\.Rproj$
2+
^.claude$
3+
^\.Rproj\.user$
74
^README\.Rmd$
5+
^README\.html$
86
^README_files$
97
^kdensity\.Rproj$
10-
^testing$
11-
^\.travis\.yml$
12-
^appveyor\.yml$
13-
^cran-comments\.md$
14-
^CRAN-RELEASE$
158
^paper$
9+
^tools$
1610
^codecov\.yml$
1711
^\.github$
12+
^AGENTS\.md$
13+
^Justfile$
14+
^cran-comments\.md$
15+
^CRAN-RELEASE$
1816
^CRAN-SUBMISSION$
17+
^coverage\.html$
18+
^coverage\.xml$
19+
^cobertura\.xml$
20+
^revdep$
21+
^revdep-manual$

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@ on:
55
branches: [main, master]
66
pull_request:
77
branches: [main, master]
8+
workflow_dispatch:
89

910
name: R-CMD-check
1011

12+
permissions:
13+
contents: read
14+
1115
jobs:
1216
R-CMD-check:
1317
runs-on: ${{ matrix.config.os }}

.github/workflows/test-coverage.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,18 @@ Temporary Items
3838
.RData
3939
.Rhistory
4040
.Rbuildignore
41+
.agents/
42+
.codex/
43+
*.tar.gz
44+
*.Rcheck/
45+
..Rcheck/
46+
coverage.html
47+
coverage.xml
48+
cobertura.xml
49+
README.html
50+
README_files/
51+
tests/testthat/Rplots.pdf
4152
inst/doc
4253
vignettes/*.R
54+
revdep/
55+
revdep-manual/

AGENTS.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# AGENTS.md
2+
3+
This repository is an R package. Keep changes small, package-oriented, and easy to verify locally.
4+
5+
## Core Commands
6+
7+
- `just test`: run the testthat suite.
8+
- `just check`: run `R CMD check` with `--as-cran` and `--no-manual`.
9+
- `just coverage`: print coverage and write a readable `coverage.html`.
10+
- `just readme`: render `README.md` from `README.Rmd`.
11+
- `just clean`: remove local check, coverage, tarball, and generated test artifacts.
12+
13+
## Repo Conventions
14+
15+
- `README.md` is generated from `README.Rmd`. Edit `README.Rmd` if the rendered README needs to change.
16+
- Package documentation in `man/` is generated from roxygen comments in `R/`.
17+
- Keep top-level developer files such as `AGENTS.md` and `Justfile` out of package builds.
18+
- `tests/testthat/Rplots.pdf` is a disposable artifact. Recipes should remove it automatically.
19+
20+
## Change Scope
21+
22+
- Prefer focused edits over wide refactors.
23+
- Add or extend tests for behavior changes.
24+
- Before a version bump, make sure `DESCRIPTION`, docs, and CI reflect the current package behavior.

CRAN-SUBMISSION

Lines changed: 0 additions & 3 deletions
This file was deleted.

DESCRIPTION

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: kdensity
22
Type: Package
33
Title: Kernel Density Estimation with Parametric Starts and Asymmetric Kernels
4-
Version: 1.1.1
4+
Version: 1.2.0
55
Authors@R: c(
66
person("Jonas", "Moss", , "jonas.gjertsen@gmail.com", role = c("aut", "cre"),
77
comment = c(ORCID = "0000-0002-6876-6964")),
@@ -22,16 +22,11 @@ License: MIT + file LICENSE
2222
URL: https://github.com/JonasMoss/kdensity
2323
BugReports: https://github.com/JonasMoss/kdensity/issues
2424
Encoding: UTF-8
25-
LazyData: true
2625
Suggests: extraDistr,
27-
SkewHyperbolic,
2826
testthat,
29-
covr,
3027
knitr,
3128
rmarkdown
32-
Imports: assertthat,
33-
univariateML,
34-
EQL
29+
Imports: univariateML
3530
RoxygenNote: 7.3.2
3631
VignetteBuilder: knitr
3732
Roxygen: list(markdown = TRUE)

Justfile

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
set shell := ["bash", "-cu"]
2+
3+
default:
4+
@just --list
5+
6+
test:
7+
trap 'rm -f tests/testthat/Rplots.pdf' EXIT; Rscript -e "testthat::test_local(reporter = 'summary')"
8+
9+
check:
10+
trap 'rm -f tests/testthat/Rplots.pdf' EXIT; pkg=$(Rscript -e 'd <- read.dcf("DESCRIPTION"); cat(sprintf("%s_%s.tar.gz", d[1, "Package"], d[1, "Version"]))'); R CMD build . && R CMD check --as-cran --no-manual "$pkg"
11+
12+
coverage:
13+
trap 'rm -f tests/testthat/Rplots.pdf' EXIT; Rscript tools/render-coverage-report.R
14+
15+
revdep:
16+
R_COMPILE_AND_INSTALL_PACKAGES=never Rscript -e "revdepcheck::revdep_check(num_workers = 2)"
17+
18+
revdep-reset:
19+
Rscript -e "revdepcheck::revdep_reset()"
20+
21+
revdep-manual:
22+
#!/usr/bin/env bash
23+
set -euo pipefail
24+
rm -rf revdep-manual
25+
R CMD INSTALL .
26+
R_COMPILE_AND_INSTALL_PACKAGES=never Rscript -e 'install.packages(c("RealSurvSim","tscopula"), repos="https://cloud.r-project.org")'
27+
mkdir -p revdep-manual
28+
cd revdep-manual
29+
Rscript -e 'download.packages(c("RealSurvSim","tscopula"), destdir=".", type="source", repos="https://cloud.r-project.org")'
30+
for tarball in *.tar.gz; do
31+
echo "=== Checking $tarball ==="
32+
R CMD check --no-manual "$tarball" || true
33+
done
34+
echo
35+
echo "=== Summary ==="
36+
grep -H "^Status:" */00check.log
37+
38+
readme:
39+
Rscript -e "pkgload::load_all(quiet = TRUE); rmarkdown::render('README.Rmd', output_format = 'github_document', quiet = TRUE)"
40+
41+
clean:
42+
rm -rf ..Rcheck .Rcheck kdensity.Rcheck inst/doc README.html README_files coverage.html coverage.xml cobertura.xml *.tar.gz tests/testthat/Rplots.pdf revdep revdep-manual

NEWS.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
## kdensity 1.2.0 (2026-05-04)
2+
3+
* New closed-form bandwidth selector `"HS"`, based on Hallberg
4+
Szabadváry's beta reference rule (arXiv:2601.19553). It is now the
5+
default bandwidth for the bias-corrected `beta` kernel with a uniform
6+
or constant start, with a fallback heuristic when the rule's moment
7+
conditions are not satisfied.
8+
* `RHE` no longer depends on the `EQL` package; the Hermite polynomials
9+
are evaluated inline (matches the previous numeric output to ~1e-12).
10+
* Trimmed dependencies: `EQL` removed from `Imports`; `assertthat`,
11+
`testthat`, `extraDistr`, and other build-time helpers no longer
12+
required at install time.
13+
* Internal cleanup: the `R/` source layout is consolidated into
14+
`bandwidths.R`, `kernels.R`, `starts.R`, and `helpers.R`; no
15+
user-visible API changes.
16+
117
## kdensity 1.1.1 (2025-02-18)
218

319
* Added support for update of univariateML to version 1.5.

0 commit comments

Comments
 (0)