You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/RcppExports.R
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ pmax3 <- function(x, y, z) {
69
69
#' @name pmaxC
70
70
#' @param x A numeric vector.
71
71
#' @param a A single numeric value.
72
-
#' @return The parallel maximum of the input values.
72
+
#' @return The parallel maximum of the input values. \code{pmax0(x)} is shorthand for \code{pmaxC(x, 0)}, i.e. convert negative values in \code{x} to 0.
73
73
#' @note This function will always be faster than \code{pmax(x, a)} when \code{a} is a single value, but can be slower than \code{pmax.int(x, a)} when \code{x} is short. Use this function when comparing a numeric vector with a single value.
74
74
#' @export pmaxC
75
75
NULL
@@ -78,6 +78,10 @@ pmaxC <- function(x, a) {
78
78
.Call(`_grattan_pmaxC`, x, a)
79
79
}
80
80
81
+
pmax0<-function(x) {
82
+
.Call(`_grattan_pmax0`, x)
83
+
}
84
+
81
85
#' @title Parallel maximum
82
86
#' @description A faster \code{pmax()}.
83
87
#'
@@ -98,7 +102,7 @@ pmaxV <- function(x, y) {
98
102
#' @name pminC
99
103
#' @param x A numeric vector.
100
104
#' @param a A single numeric value.
101
-
#' @return The parallel minimum of the input values.
105
+
#' @return The parallel minimum of the input values. The \code{0} versions are shortcuts for \code{a = 0}.
102
106
#' @note This function will always be faster than \code{pmin(x, a)} when \code{a} is a single value, but can be slower than \code{pmin.int(x, a)} when \code{x} is short. Use this function when comparing a numeric vector with a single value.
Copy file name to clipboardExpand all lines: cran-comments.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,17 @@
2
2
0 ERRORS | 0 WARNINGS | 1-3 NOTEs
3
3
4
4
### Test environments:
5
-
* Local Windows R 3.4.3
5
+
* Local Windows MRAN 3.4.3:
6
+
- taxstats 0.0.4.1314
7
+
- taxstats 0.0.5.1415
6
8
* Travis-CI: R 3.3, 3.4, and dev
7
-
* Appveyor: dev and release.
9
+
* Appveyor: dev (ERROR as data.table was unavailable) and release.
8
10
* winbuilder: dev and release.
9
11
10
-
This is an update to skip tests that do not run reliably on CRAN, following updates to dependencies. There was a single new NOTE indicating that the last submission was not long ago: this update was requested by CRAN.
12
+
This is an update and resubmission to skip tests that do not run reliably on CRAN, following updates to dependencies. There was a single new NOTE indicating that the last submission was not long ago: this update was requested by CRAN. In addition, the UBSAN issues have been avoided by removing the dependency on RcppParallel entirely.
11
13
12
14
NOTES:
13
-
'Days since last update: 3'
15
+
'Days since last update: 4'
14
16
==> Update requested by CRAN.
15
17
16
18
Possibly mis-spelled words in DESCRIPTION: ...
@@ -19,9 +21,6 @@ Possibly mis-spelled words in DESCRIPTION: ...
19
21
Suggests or Enhances not in mainstream repositories: ...
20
22
==> Normal due to taxstats dependency
21
23
22
-
GNU make is a SystemRequirements.
23
-
==> Required.
24
-
25
24
## Note to CRAN: moderately-large vignette
26
25
The vignette is quite lengthy and, while it will run on CRAN, requires the installation of 'taxstats', a 58 MB source package, each time the package is checked.
0 commit comments