aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DESCRIPTION4
-rw-r--r--NEWS.md4
-rw-r--r--R/utils.R8
3 files changed, 11 insertions, 5 deletions
diff --git a/DESCRIPTION b/DESCRIPTION
index 42571fb..94ae43e 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
Package: unmarked
-Version: 1.3.0
-Date: 2023-06-27
+Version: 1.3.1
+Date: 2023-06-29
Type: Package
Title: Models for Data from Unmarked Animals
Authors@R: c(
diff --git a/NEWS.md b/NEWS.md
index 1d79047..8376684 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -1,3 +1,7 @@
+# unmarked 1.3.1
+
+* Remove log.grad function to pass CRAN checks
+
# unmarked 1.3.0
* Add support for terra package rasters
diff --git a/R/utils.R b/R/utils.R
index 9e9dff6..6bfb5ac 100644
--- a/R/utils.R
+++ b/R/utils.R
@@ -47,9 +47,11 @@ logistic.grad <- function(x) {
}
-log.grad <- function(x) { # duh! (but for clarity)
- 1/x
-}
+# This function causes check failures on CRAN because CRAN thinks it's
+# a method for the log function. I don't think it's actually used in the package?
+#log.grad <- function(x) { # duh! (but for clarity)
+# 1/x
+#}
explink <- function(x) exp(x)