Skip to content

Commit

Permalink
fix is.R
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenkewu committed Jan 29, 2024
1 parent 50b695b commit 5ac0b75
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 32 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: baker
Type: Package
Title: "Nested Partially Latent Class Models"
Version: 1.0.2.9000
Date: 2023-12-20
Version: 1.0.3
Date: 2024-01-29
Authors@R: c(
person("Zhenke", "Wu", email="zhenkewu@gmail.com",role=c("cre","aut","cph"),
comment = c(ORCID = "0000-0001-7582-669X")),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# baker (development version)

# baker 1.0.3

Fixed an issue related to `is.R` deprecation for R 4.4.0 and above.

# baker 1.0.2

* fix an issue related to JAGS 4.3.x removed `cut()` function and only recognizes
Expand Down
7 changes: 7 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,13 @@ s_date_FPR <- function(Rdate,Y,basis="ps",dof=10,...) {
# }
# }


is.R <- function () {
exists("version") && !is.null(vl <- version$language) && vl ==
"R"
}


#' Run `JAGS` from R
#'
#' The jags function takes data and starting values as input.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ status](https://github.com/zhenkewu/baker/actions/workflows/R-CMD-check.yaml/bad
[![](http://cranlogs.r-pkg.org/badges/grand-total/baker?color=green)](https://cran.r-project.org/package=baker)
[![](http://cranlogs.r-pkg.org/badges/last-month/baker?color=green)](https://cran.r-project.org/package=baker)
[![](http://cranlogs.r-pkg.org/badges/last-week/baker?color=green)](https://cran.r-project.org/package=baker)
[![](https://img.shields.io/badge/devel%20version-1.0.2-blue.svg)](https://github.com/zhenkewu/baker)
[![](https://img.shields.io/badge/devel%20version-1.0.3-blue.svg)](https://github.com/zhenkewu/baker)
[![](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://lifecycle.r-lib.org/articles/stages.html#maturing)

<!-- [![Coverage status](https://codecov.io/gh/zhenkewu/baker/branch/master/graph/badge.svg)](https://codecov.io/github/zhenkewu/baker?branch=master) -->
Expand Down
31 changes: 2 additions & 29 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,8 @@
## Resubmission
This is a resubmission. In this version I have:

* Fixed an issue related to JAGS being updated to 4.3.x
(Package was archived on CRAN because of a tricky interfacing issue between
JAGS 4.3.x and R 4.3.x was not corrected in time); I contacted the author of JAGS and he confirmed the issue
was a bug but will not release a debugged version soon. So I went ahead to fix the issue
in my package; the changes primarily occurred in the `jags2_baker` function which interfaces with
the JAGS. Also JAGS 4.3.x retired a function`cut` so I modified the functoins in `nplcm.R` to accommodate this change.
- And these fixes passes the suggested checks (see Test `Environments` below).

* winbuilder gave a note on new submission and possible misspelling - but because
I was intructed to not put single quotes around these names (which would overcome this issue),
I will leave as is.

- ```
New submission
Package was archived on CRAN
Possibly misspelled words in DESCRIPTION:
Deloria (18:9, 19:9)
Hammitt (18:24)
Zeger (18:37, 19:28)
```

## Reverse dependencies; revdecp_check result `OK: 0` `BROKEN: 0`

This is a precise fix to a previously a short and archived release taken down on
2022-06-08 (https://cran.r-project.org/web/packages/baker/index.html),
so there are no reverse dependencies given the short life of the previous release.
* Fixed an issue related to is.R() will be depreciated for R 4.4.0 and above.

## Reverse dependencies; revdecp_check result `OK: 0` `BROKEN: 0`

## Test environments
* local macOS X Sonoma 14.2 install, R 4.3.2
Expand Down

0 comments on commit 5ac0b75

Please sign in to comment.