Skip to content

Commit 985b4b6

Browse files
Merge pull request #50 from AndrewLJackson/try-remove-NOTEs
removed dplyr NOTEs
2 parents d1476bd + 654d151 commit 985b4b6

3 files changed

Lines changed: 14 additions & 13 deletions

File tree

R/kapow.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ kapow <- function(cd = 7, ng = 25, n = 50, sc = 10, do.plot = TRUE) {
2525

2626
Y <- generateSiberCommunity(n.groups = ng, n.obs = n, wishSigmaScale = sc)
2727

28-
Y <- Y %>% mutate(group = factor(group))
28+
# dplyr version causes NOTE to be generated with
29+
# "no visible binding for global variable ‘group’"
30+
# Y <- Y %>% mutate(group = factor(group))
31+
Y$group <- factor(Y$group)
2932

3033
# myScale <- function(x){ (x - mean(x)) / sd(x)}
3134
# Y <- Y %>% group_by(group) %>% mutate(iso1 = myScale(iso1),

R/siberKapow.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ siberKapow <- function(dtf, isoNames = c("iso1", "iso2"),
4040
n = 360 * 1,
4141
p.interval = pEll,
4242
ci.mean = FALSE,
43-
col = i,
4443
lty = 3,
4544
lwd = 2,
4645
small.sample = TRUE,
@@ -60,7 +59,10 @@ siberKapow <- function(dtf, isoNames = c("iso1", "iso2"),
6059
do(calcBoundaries(.data))
6160

6261
# split the dataset by the defined grouping parameter
63-
ellCoords.list <- ellCoords %>% split(., .[,group])
62+
# The piped version causes NOTEs
63+
# "no visible binding for global variable ‘group’"
64+
# ellCoords.list <- ellCoords %>% split(., .[,group])
65+
ellCoords.list <- split(ellCoords, ellCoords$group)
6466

6567
# Define a short custom function and then apply it over the list
6668
# using map()

cran-comments.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Some checks highlighted in correspondance from Brian Ripley regarding new checks on vignettes that SIBER failed. I have rectified these in this release. SIBER was removed from CRAN with the note "Archived on 2019-01-23 as check issues were not corrected in time."
2-
31
## Resubmission
4-
* A submission on 14-Feb-2019 was automatically rejected owing to a failed vignette re-build. I have rectified by adding `library(SIBER)` to this 'Points-Inside-Outside-Ellipse.Rmd'.
2+
* Thanks Uwe for responding to my last submission on 19-FEB-2019 clarifying the need to remove the "no visible binding for variable 'xyz'" arising from my use of piped syntax with dplyr. I have removed these two NOTEs. Not by adding global variables, but in both instances by using base syntax and directly naming the variable using dollar sign notation within the data.frame, e.g. `df$group`. Thanks for taking the time to resond in person and hopefully now my submission on all CRAN test environments be O errors, 0 warnings and 0 notes as per my local environment.
3+
* win-builder reports 1 NOTE under "checking CRAN incoming feasibility ... NOTE" pointing out, I believe, that this is a New submission that overrides a version that was removed owing to check issues not corrected in time.
54

65

76
### Previous NOTES
@@ -16,19 +15,16 @@ Error: processing vignette 'Points-Inside-Outside-Ellipse.Rmd' failed with diagn
1615
could not find function "generateSiberGroup"
1716
--- failed re-building ‘Points-Inside-Outside-Ellipse.Rmd’
1817

19-
* I cant reproduce this warning in either the local or remote test environments, but have added `Suggets: rmarkdown` to DESCRIPTION which from reading various help boards I believe will prevent it.
18+
* I cant reproduce this warning in either the local or remote test environments, but have added `Suggets: rmarkdown` to DESCRIPTION which from reading various help boards I believe prevents it.
2019

2120
## Test environments
2221
* local OS X 10.14.2 install, R 3.5.2
23-
* win-builder release
24-
* win-builder development
22+
* win-builder release - generates 1 NOTE pointing out this is a New submission that overrides a version that was removed owing to check issues not corrected in time.
23+
* win-builder development - generates 1 NOTE pointing out this is a New submission that overrides a version that was removed owing to check issues not corrected in time.
2524

2625

2726
## R CMD check results
28-
* There were no ERRORs or WARNINGs
29-
* There were 2 NOTEs.
30-
* The first arises owing to this being a new submission that overwrites the archived version of the same name which was removed owing to it failing checks.
31-
* The second results from 3 instances of "no visible binding for global variable 'VAR'" all relating to the function `kapow()` and `siberKapow()`. These all arise from use of `ggplot2` and 'dplyr'. This note can be ignored as the data.frame object passed into `kapow()` and `siberKapow()` will have these variable names.
27+
* There were no ERRORs or WARNINGs or NOTEs on my local environment.
3228

3329
## CRAN Package Check Results for Package SIBER
3430
* As per note at the start, this package failed the latest round of checks owing to vignette title naming bugs. I have rectified all.

0 commit comments

Comments
 (0)