-
Notifications
You must be signed in to change notification settings - Fork 3
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
use data.frame() instead of melt() in div_profile_plot; other minor fixes #4
base: master
Are you sure you want to change the base?
Conversation
The example failure above is un-related to
above is a warning. below it is an error (using
so this confirms that the issue is reproducible using the hilldiv code in this PR. |
Using this PR (b6b7416) I no longer get an error from running that example:
@anttonalberdi can you please review, merge, fix the other R CMD check issues, and then submit to CRAN? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: github UI points out missing terminal newlines in this & .gitignore
@@ -37,7 +37,6 @@ importFrom(RColorBrewer,brewer.pal) | |||
importFrom(ape,cophenetic.phylo) | |||
importFrom(ape,drop.tip) | |||
importFrom(ape,is.ultrametric) | |||
importFrom(data.table,melt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe worth noting that, IINM, the trivial fix here is to just change this line to importFrom(reshape2, melt)
.
but as {reshape2} is retired, I agree your approach to use row()
/col()
directly makes more sense.
Great work fixing the lintr::lint_package(linters = lintr::class_equals_linter()) I ran |
in Rdatatable/data.table#6670 we see that checking hilldiv from CRAN (1.5.1) using new data.table from github master, results in a new check issue: error in
example(div_profile_plot)
, which does not happen usingdata.table
from CRAN (1.16.4).This PR is my attempt to fix hilldiv so that it works with the new version of
data.table
, which we plan to release in the next month or so.I began by cloning hilldiv from github and trying to reproduce the same error on Rdatatable/data.table#6670 (using hilldiv from CRAN).
I noticed there were a bunch of minor R CMD check issues which I have fixed in this PR.
Now using data.table master I get the following error when checking this PR version of hilldiv
above is not the same error as we get when checking hilldiv from CRAN.
below I try to check hilldiv from this PR, using
data.table
from CRAN, and I get the same error.