Closed ddsjoberg closed 2 years ago
@jthomasmock The merge conflicts were easier to resolve than I thought they would be! This PR is ready for review! ٩(^ ᴗ ^)۶
You are an absolute saint, hope you know that! 😭
Reviewing, also wanted to confirm - are you ok being indicated as a contributor?
I would definitely say that you have left your mark on the package to say the least.
On my machine, I was getting an error in R/fontawesome-icons.R stemming from line if(is.null(palette) && unique(int_x) >= 8). I updated it to if(is.null(palette) && length(unique(int_x)) >= 8). Please confirm this is accurate.
Interesting that this wasn't erroring locally for me. The length(unique(int_x)) >= 8
is the intended behavior. Thanks!
You're a saint for writing such a beautiful pkg!! Happy to be listed as a contributor: that is so kind :)
One other thing that'll need to be taken care of before CRAN: webshot2. CRAN will allow you a weak dependency (aka a package in Suggests) that is not on CRAN, but it must be housed in a proper pkg repository (i.e. they do not allow for Remotes: rstudio/webshot2
in the DESCRIPTION).
There are two pretty straightforward options:
Additional_repositories: https://jthomasmock .r-universe.dev
Here's what mine looks like https://ddsjoberg.r-universe.dev/ I use gtExtras in my bstfun pkg, so gtExtras is auto-added to my universe.Additional_repositories:
line to DESCRIPTION.Thanks again, I've been meaning to setup a r-universe, so this is a great excuse 😄
There are ways to conceal calls to other package's internal functions from CRAN. But if you get caught, the package will be rejected.
One more question re: gt:::
- I would prefer to stick with those as it's unfortunately a lot of vendored code otherwise. I'm taking a shot at removing their use, but if you have any suggestions I'd love to hear it!
Ooo, this is almost ready for CRAN!
I feel funny about putting this advice in a public space 😆 😆 😆
do.call()
and quote the function name, e.g. do.call("foo", list(arg1, arg2))
Since the function name is in quotes, it won't be picked up by the R CMD Check. This has some risk, however. If Rich were to change any of his internal functions, then gtExtras will break.usethis::use_data()
. This will save a copy inside your package. If the function you save has other internal functions that are called from gt, I am not sure if they'll be found however. Would need to do some testing.Good to know - I was able to get it all vendored, but may revisit as it's quite a bit of code!!!
I've bumped to v3.0 in prep for hopefully a CRAN release soon. Added you as a ctr, thanks so much!
.data
references.usethis::use_package_doc()
and consolidated all roxygen2@import
calls to this documentation file."."
in the package documentation file.R/fontawesome-icons.R
stemming from lineif(is.null(palette) && unique(int_x) >= 8)
. I updated it toif(is.null(palette) && length(unique(int_x)) >= 8)
. Please confirm this is accurate.plots-in-gt.Rmd
Outstanding Items:
gt:::
. Before you submit to CRAN, you'll need to resolve this note. There are ways to conceal calls to other package's internal functions from CRAN. But if you get caught, the package will be rejected.