Skip to content

Commit

Permalink
0.3.0-1 as submitted to CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Jan 8, 2025
1 parent ea4240f commit 307430f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM docker.io/rhub/r-minimal:devel

# for R CMD check --as-cran, also need
# pandoc texlive texmf-dist-fontsextra tidyhtml tzdata
RUN apk update && \
apk add --no-cache git \
&& echo 'options(repos="https://cloud.r-project.org")' >> /usr/local/lib/R/etc/Rprofile.site
apk add --no-cache git gcc g++ linux-headers musl-dev

COPY DESCRIPTION .

RUN Rscript -e ' \
options(repos = "https://cloud.r-project.org"); \
install.packages("remotes"); \
remotes::install_deps(dependencies = "Imports") \
'
8 changes: 5 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Package: funchir
Version: 0.3.0
Version: 0.3.0-1
Title: Convenience Functions by Michael Chirico
Author: Michael Chirico
Maintainer: Michael Chirico <[email protected]>
Authors@R: person(given = "Michael",
family = "Chirico",
role = c("aut", "cre"),
email = "[email protected]")
Depends: R (>= 3.2.2)
Description: YACFP (Yet Another Convenience Function Package). get_age() is a fast & accurate tool for measuring fractional years between two dates. stale_package_check() tries to identify any library() calls to unused packages.
Imports: data.table
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### v0.3.0
### v0.3.0-1

* I removed most of the functionality from the package. I think only `stale_package_check()` and `get_age()` have gotten any real downstream usage aside from my own; the few functions I kept are those that I actually continue to use myself with any regularity, or which I think it's worth having written down to save re-inventing the wheel for functions only needed rarely.

Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-plot-utils.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
test_that('device-units-to-inches functions work', {
skip_if_not(capabilities()["X11"], "Test requires png() device, assumed to require X11")
on.exit(dev.off())
grDevices::png(tempfile())
plot(NA, xlim=0:1, ylim=0:1)
Expand Down

0 comments on commit 307430f

Please sign in to comment.