-
-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
canaper: Categorical Analysis of Neo- And Paleo-Endemism in R #475
Comments
Thanks for submitting to rOpenSci, our editors and @ropensci-review-bot will reply soon. Type |
🚀 The following problem was found in your submission template:
👋 |
Checks for canaper (v0.0.1)git hash: 43a9f0a2
Package License: MIT + file LICENSE 1. rOpenSci Statistical Standards (
|
measure | value | percentile | noteworthy |
---|---|---|---|
files_R | 11 | 59.3 | |
files_vignettes | 2 | 83.0 | |
files_tests | 8 | 85.7 | |
loc_R | 650 | 52.9 | |
loc_vignettes | 162 | 64.9 | |
loc_tests | 939 | 83.5 | |
num_vignettes | 3 | 93.1 | |
data_size_total | 66301 | 81.2 | |
data_size_median | 509 | 59.9 | |
n_fns_r | 34 | 35.6 | |
n_fns_r_exported | 4 | 15.6 | |
n_fns_r_not_exported | 30 | 42.6 | |
n_fns_per_file_r | 3 | 42.7 | |
num_params_per_fn | 4 | 67.6 | |
loc_per_fn_r | 10 | 40.0 | |
loc_per_fn_r_exp | 41 | 75.3 | |
loc_per_fn_r_not_exp | 7 | 29.9 | |
rel_whitespace_R | 13 | 43.9 | |
rel_whitespace_vignettes | 0 | 0.0 | TRUE |
rel_whitespace_tests | 7 | 84.7 | |
doclines_per_fn_exp | 55 | 68.2 | |
doclines_per_fn_not_exp | 0 | 0.0 | TRUE |
fn_call_network_size | 9 | 22.0 |
2a. Network visualisation
Interactive network visualisation of calls between objects in package can be viewed by clicking here
3. goodpractice
and other checks
Details of goodpractice and other checks (click to open)
3a. Continuous Integration Badges
GitHub Workflow Results
name | conclusion | sha | date |
---|---|---|---|
pkgdown | success | 43a9f0 | 2021-10-26 |
R-CMD-check | success | 43a9f0 | 2021-10-26 |
Render codemeta | failure | 43a9f0 | 2021-10-26 |
test-coverage | success | 43a9f0 | 2021-10-26 |
3b. goodpractice
results
R CMD check
with rcmdcheck
rcmdcheck found no errors, warnings, or notes
Test coverage with covr
Package coverage: 100
Cyclocomplexity with cyclocomp
The following functions have cyclocomplexity >= 15:
function | cyclocomplexity |
---|---|
cpr_rand_test | 29 |
calc_biodiv_random | 16 |
Static code analyses with lintr
lintr found the following 353 potential issues:
message | number of times |
---|---|
Lines should not be more than 80 characters. | 353 |
Package Versions
package | version |
---|---|
pkgstats | 0.0.2.16 |
pkgcheck | 0.0.2.86 |
srr | 0.0.1.120 |
Editor-in-Chief Instructions:
This package is in top shape and may be passed on to a handling editor
@ropensci-review-bot seeking reviewers |
I'm sorry @tdhock, I'm afraid I can't do that. That's something only editors are allowed to do. |
@ropensci-review-bot assign @tdhock as editor |
Assigned! @tdhock is now the editor |
I forgot to mention, I plan to submit this as a paper to Methods in Ecology and Evolution after ROpenSci review (have also added this to the original description) |
@ropensci-review-bot assign @KlausVigo as reviewer |
@tdhock Only just realised the command there has the wrong syntax - should be |
@ropensci-review-bot add @KlausVigo to reviewers |
sorry @tdhock, another bot glitch there - bot commands have to be kept as just that, with no additional comments. And yes, the point of the above-linked issue is to aid consistency between analogous commands, so that will hopefully improve soon. In the meantime, could you please try again, again, with just the command? With due apologies and gratitude! 🙇♂️ |
@ropensci-review-bot add @KlausVigo to reviewers |
Can't assign reviewer because there is no editor assigned for this submission yet |
@tdhock sorry for all the hiccups! The initial issue body had been edited after your username was added so your username was no longer in the string |
@ropensci-review-bot add @KlausVigo to reviewers |
@KlausVigo added to the reviewers list. Review due date is 2021-11-24. Thanks @KlausVigo for accepting to review! Please refer to our reviewer guide. |
@KlausVigo: If you haven't done so, please fill this form for us to update our reviewers records. |
@ropensci-review-bot add @luismurao to reviewers |
@luismurao added to the reviewers list. Review due date is 2021-12-21. Thanks @luismurao for accepting to review! Please refer to our reviewer guide. |
@luismurao: If you haven't done so, please fill this form for us to update our reviewers records. |
Package ReviewPlease check off boxes as applicable, and elaborate in comments below. Your review is not limited to these topics, as described in the reviewer guide
DocumentationThe package includes all the following forms of documentation:
Functionality
Estimated hours spent reviewing:
Review Comments
Parallelization calls as in the current version of the package library(canaper) # This package :)
library(future) # For parallel computing
library(tictoc) # For timing things
library(patchwork) # For composing mult-part plots
library(tidyverse) # For data-wrangling and plottin
data(acacia)
plan(multisession,workers=ncores)
set.seed(071421)
acacia_rand_res <- cpr_rand_test(
acacia$comm, acacia$phy,
null_model = "curveball",
n_reps = 100, n_iterations = 100000,
tbl_out = TRUE)
plan(sequential) I think this could be more appropriate and easy to use acacia_rand_res <- cpr_rand_test(
acacia$comm, acacia$phy,
null_model = "curveball",
n_reps = 100, n_iterations = 100000,
tbl_out = TRUE
parallel = TRUE, # Logical var to run processes in parallel
nworkes = 3, # Number of threads
random_seed=071421) # Random seed
README
InstallationThere is a potential conflict in package dependencies as
Automated test
══ Warnings ════════════════════════════════════════════════════════════════════
── Warning (test-utils.R:143:3): Functions copied from phyloregion work ────────
rgeos: versions of GEOS runtime 3.10.1-CAPI-1.16.0
and GEOS at installation 3.9.1-CAPI-1.14.2differ
Backtrace:
1. testthat::expect_equal(dense2sparse(biod_example$comm), phyloregion::dense2sparse(biod_example$comm)) test-utils.R:143:2
4. base::loadNamespace(x)
7. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
8. base:::runHook(".onLoad", env, package.lib, package)
13. rgeos:::fun(libname, pkgname)
────────────────────────────────────────────────────────────────────
Warning (test-utils.R:143:3): Functions copied from phyloregion work
rgeos: versions of GEOS runtime 3.10.1-CAPI-1.16.0
and GEOS at installation 3.9.1-CAPI-1.14.2differ
Backtrace:
1. testthat::expect_equal(dense2sparse(biod_example$comm), phyloregion::dense2sparse(biod_example$comm)) test-utils.R:143:2
4. base::loadNamespace(x)
7. base::loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]])
8. base:::runHook(".onLoad", env, package.lib, package)
13. rgeos:::fun(libname, pkgname)
────────────────────────────────────────────────────────────────────
══ Results ═════════════════════════════════════════════════════════
Duration: 71.8 s
[ FAIL 0 | WARN 1 | SKIP 0 | PASS 255 ]
signficance canape.Rmd:132 PerformanceWhen benchmarking, I found a strange behavior. After using more than four threads, the program takes more time to finish a randomization test. Here is the code I used (could you please check it? I might be missing something) library(purrr)
library(tidyverse)
library(tictoc)
library(future)
library(ggplot2)
rm(list = ls())
data(acacia)
acom <- acacia$comm
acom[acom>0] <- 1
n_reps_vec <- c(100,500,1000,1500,2000)
nwokers <- 1:7
acom <- acacia$comm
acom[acom>0] <- 1
rand_times <- seq_along(n_reps_vec) %>% purrr::map_dfr(function(nrep){
rand_t <- nwokers %>% purrr::map_dfr(function(nwork){
if(nwork>1){
plan(multisession,workers=nwork)
}
set.seed(071421)
tictoc::tic()
# Run randomization test
acacia_rand_res <- canaper::cpr_rand_test(
acom, acacia$phy,
null_model = "curveball",
n_reps = n_reps_vec[nrep],
n_iterations = 100000,
tbl_out = TRUE)
aa <- tictoc::toc()
r1 <-data.frame(n_reps = n_reps_vec[nrep] ,
nworkers=nwork,
time_secs = aa$toc - aa$tic)
plan(sequential)
return(r1)
})
return(rand_t)
})
ggplot(rand_times, aes(x = ncores,y=time_secs,color=as.factor(n_reps))) +
geom_line() + theme_classic() Questions and comments
@joelnitta please do not hesitate to contact me if you have any questions. Thanks for developing |
@luismurao thanks so much for your review! I will try to address your comments soon. |
@KlausVigo thanks for making that change: I switched back to importing phyloregion, and it passes the tests for consistent results using the same seed in parallel. I just have one request: would you consider bumping the phyloregion version so that I can require the version with this fix in
|
@joelnitta nice that this works and it seems to simplify things.
|
@KlausVigo no problem: it is a very subtle error, and one that I would never have resolved without the help of @HenrikBengtsson. As he has mentioned this is likely a much wider problem across many packages on CRAN. If you and @darunabas are able to release a new version of |
@KlausVigo - if you are updating |
I am wondering if we can move forward on this submission? @KlausVigo @luismurao have the comments/suggestions in your reviews been addressed? |
@tdhock Sorry, I am the cause for the delay! Since the reviews came back I've gotten busy with other projects, and haven't been able to get back to this yet. I anticipate being occupied by other projects for another week or two. Please remind me again if you don't hear something soon after that. |
Hi @joelnitta and @tdhock ! I'm currently the rotating editor in chief for rOpenSci submissions. I wanted to check in and see if you expect to have time to revisit the review feedback soon? Otherwise, we may want to put this review on hold status |
Thanks for checking in @emilyriederer. Sorry for falling behind on this. I am still occupied with other things at the moment, but I should be able to respond to the reviews by the end of August if not sooner. |
Response to reviewsI am sorry for taking so long to respond to the reviewers. Thanks again to both reviewers for their helpful comments. Below I respond to each comment as appropriate. Response to @luismurao
README
Installation
Automated test
Performance
Questions and comments
Response to @KlausVigo
Specific comments
Profiling
For submitting to CRAN
General comments
|
Update to response to reviewersThe longest running test is I have decided to follow 6.1.5.4 Extended tests of rOpenSci Statistical Software Peer Review and treat this as an extended test that can be optionally skipped (it is now skipped by default). I have documented this in a comment as follows:
@tdhock, @emilyriederer sorry again for the long delay, but this should be ready to move forward. Please let me know if there is anything you need from my end. |
Also tagging @KlausVigo @luismurao . I know this review was a bit delayed and your availability may have changed. At your convenience, if you could please review @joelnitta 's responses and share whether these address your feedback (template available here) , that would be fantastic. |
@emilyriederer If the reviewers have no further comments, can we proceed with this at your discretion as an editor? |
Hi @joelnitta - let me follow up with @tdhock since he's the managing editor on this one |
hi! Since the reviewers have been tagged two weeks ago and gave no feedback, I think it is OK to move ahead with this submission (the reviewer response is very complete/convincing). |
@ropensci-review-bot approve canaper |
Approved! Thanks @joelnitta for submitting and @KlausVigo, @luismurao for your reviews! 😁 To-dos:
Should you want to acknowledge your reviewers in your package DESCRIPTION, you can do so by making them Welcome aboard! We'd love to host a post about your package - either a short introduction to it with an example for a technical audience or a longer post with some narrative about its development or something you learned, and an example of its use for a broader readership. If you are interested, consult the blog guide, and tag @ropensci/blog-editors in your reply. They will get in touch about timing and can answer any questions. We maintain an online book with our best practice and tips, this chapter starts the 3d section that's about guidance for after onboarding (with advice on releases, package marketing, GitHub grooming); the guide also feature CRAN gotchas. Please tell us what could be improved. Last but not least, you can volunteer as a reviewer via filling a short form. |
Thanks @tdhock! |
@ropensci-review-bot finalize transfer of canaper |
Transfer completed. |
Date accepted: 2022-09-14
Due date for @KlausVigo: 2021-11-24Submitting Author: @joelnitta
Other Package Authors: (delete if none) Shawn Laffan (@shawnlaffan)
Repository: https://github.com/joelnitta/canaper
Version submitted: 0.0.1
Submission type: Stats
Badge grade: silver
Editor: @tdhock
Reviewers: @KlausVigo, @luismurao
Due date for @luismurao: 2021-12-21
Archive: TBD
Version accepted: TBD
Pre-submission Inquiry
General Information
Who is the target audience and what are scientific applications of this package?
Paste your responses to our General Standard G1.1 here, describing whether your software is:
The first implementation within R of an algorithm which has previously been implemented in other languages or contexts
Please include hyperlinked references to all other relevant software: https://github.com/shawnlaffan/biodiverse
(If applicable) Does your package comply with our guidance around Ethics, Data Privacy and Human Subjects Research?
Note also there is a package website available: https://joelnitta.github.io/canaper/
Badging
What grade of badge are you aiming for? (bronze, silver, gold)
If aiming for silver or gold, describe which of the four aspects listed in the Guide for Authors chapter the package fulfils (at least one aspect for silver; three for gold)
Technical checks
Confirm each of the following by checking the box.
I/we have read the guide for authors and rOpenSci packaging guide.
I/we have read the Statistical Software Peer Review Guide for Authors.
I/we have run
autotest
checks on the package, and ensured no tests fail.autotest
hangs (doesn't produce any output after waiting ca. 20 minutes) on most functions. I was only able to use it oncpr_classify_endem()
.The
srr_stats_pre_submit()
function confirms this package may be submitted.This package:
Publication options
Do you intend for this package to go on CRAN?
Do you intend for this package to go on Bioconductor?
Code of conduct
The text was updated successfully, but these errors were encountered: