Skip to content
Permalink
Browse files

updating package to address CRAN issues.

  • Loading branch information
nickreich committed Dec 6, 2019
1 parent 37d0158 commit 74ee00be06802233c2c073ee46a8ad602f8769ac
Showing with 26 additions and 14 deletions.
  1. +3 −1 ChangeLog
  2. +2 −2 DESCRIPTION
  3. +1 −0 NAMESPACE
  4. +1 −1 R/coarseDataTools-package.R
  5. +2 −1 R/dic.fit.R
  6. +16 −8 cran-comments.md
  7. +1 −1 man/nycH1N1.Rd
@@ -16,4 +16,6 @@ v0.6 - added Azman/Lessler contributions: MCMC estimation functions, ability to

v06.3 - minor modifications to address NAMESPACE issues.

v06.4 - merged hackout3 branch to support new distributions
v06.4 - merged hackout3 branch to support new distributions

v06.5 - minor modifications to fix improper call to `class()` and other new NOTES.
@@ -1,6 +1,6 @@
Package: coarseDataTools
Version: 0.6-4
Date: 2019-06-04
Version: 0.6-5
Date: 2019-12-05
Title: Analysis of Coarsely Observed Data
Authors@R: c(person("Nicholas G.", "Reich", email = "nick@schoolph.umass.edu", role = c("aut", "cre")),
person("Justin", "Lessler", email = "jlessler@jhsph.edu", role = "aut"),
@@ -17,6 +17,7 @@ importFrom(MCMCpack,MCMCmetrop1R)
importFrom(grDevices,rgb)
importFrom(graphics,lines)
importFrom(graphics,plot)
importFrom(methods,is)
importFrom(methods,new)
importFrom(stats,coef)
importFrom(stats,dgamma)
@@ -80,6 +80,6 @@ NULL
##' @examples
##' data(nycH1N1)
##' head(nycH1N1)
##' dic.fit(nycH1N1)
##' \dontrun{dic.fit(nycH1N1)}
##' @keywords datasets
NULL
@@ -41,6 +41,7 @@
##' @param n.boots number of bootstrap resamples (0 means that asymptotic results are desired)
##' @param ... additional options passed to optim
##' @return a cd.fit S4 object.
##' @importFrom methods is
##' @seealso \code{\link{cd.fit}}, \code{\link{dic.fit.mcmc}}
##' @export
##' @examples
@@ -77,7 +78,7 @@ dic.fit <- function(dat,

## make sure dat is a matrix
dat <- as.matrix(dat[,c("EL", "ER", "SL", "SR", "type")])
if(class(dat)=="data.frame") stop("dat should be a matrix.")
if(is(dat,"data.frame")) stop("dat should be a matrix.")

## find starting values for DIC analysis using profile likelihoods
start.par1 <- optimize(f=pl.par1, interval=par1.int,
@@ -1,17 +1,25 @@
## requested fixes
- fixed NOTES about canonical URLs
## updates in this edition

- as requested: fixed improper call to `class(dat) == "data.frame"` with a call to `is(dat, "data.frame")`


## R CMD check results
There were no ERRORs or WARNINGs.
> On windows-x86_64-devel (r-devel)
checking sizes of PDF files under 'inst/doc' ... NOTE
Unable to find GhostScript executable to run checks on size reduction
Notes arose from running checks on Rhub:
Unable to figure out whether this is an issue with the server running the checks or something in the package itself that I can/should be changing.

```
> On fedora-clang-devel (r-devel)
checking CRAN incoming feasibility ...NB: need Internet access to use CRAN incoming checks
NOTE
Maintainer: ‘Nicholas G. Reich <nick@schoolph.umass.edu>’
Possibly mis-spelled words in DESCRIPTION:
al (20:34, 21:14, 22:16)
Lessler (22:5)
al (20:34, 21:14, 22:16)
et (20:31, 21:11, 22:13)
```

These are expected, as they are abbreviations and last names from citations requested by CRAN maintainers.

These are expected, as they are abbreviations and last names from citations requested by CRAN maintainers.

Some generated files are not rendered by default. Learn more.

0 comments on commit 74ee00b

Please sign in to comment.
You can’t perform that action at this time.