aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Kellner <ken@kenkellner.com>2023-06-29 09:40:45 -0400
committerKen Kellner <ken@kenkellner.com>2023-06-29 09:40:45 -0400
commit9f70da0502068e6f82d4fa11c5a8a9d68422d82e (patch)
treefb57cf46460686d05eeedb04fde3727dc2b9b4cc
parent58f274de8de03ed0d80a924cbe0a84222bb20c7d (diff)
Remove (unused?) log.grad function because CRAN think's it's a method
-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)