Re: [R-pkg-devel] Possible malware(?) in a vignette

2024-01-25 Thread Robert M. Flight
I decided to grab a copy of that PDF from the RStudio CRAN mirror, and downloaded on Linux (where hopefully it won't be an issue) from the list of vignettes. Virus Total gives it the same hash as the above linked PDF, so it's definitely been propagated from CRAN, and *may* be malicious. That is

Re: [R-pkg-devel] Using ggplot2 within another package

2021-04-22 Thread Robert M. Flight
Kevin, This vignette from ggplot2 itself gives the "officially recommended" ways to avoid the warnings from R CMD check https://ggplot2.tidyverse.org/articles/ggplot2-in-packages.html Cheers, -Robert On Thu, Apr 22, 2021 at 4:39 PM Paul SAVARY wrote: > Hi Kevin, > > I was faced to the same

Re: [R-pkg-devel] Package Rejection Error Help

2021-04-06 Thread Robert M. Flight
Andrew, I think if you want to include a Bioconductor dependency, then I think you add the "biocViews:" line to your description file to enable bioconductor package installation. See this answer on Bioinformatics stackexchange: https://bioinformatics.stackexchange.com/a/3375/51 Hope that helps!

Re: [R-pkg-devel] Interpret feedback: not write testthat-tests in examples

2020-07-16 Thread Robert M. Flight
Richel, I think that feedback is important. Examples are examples first, and tests second, as in if your examples no longer work, then maybe you need to check your underlying code. {testthat} tests belong in their own `tests` directory, and are used to directly test your code and provide

Re: [R-pkg-devel] How to refer to COPYRIGHTS and AUTHORS extra files in DESCRIPTION

2020-07-07 Thread Robert M. Flight
Yohann, Here is a description of the strategy I used a couple of years ago. https://rmflight.github.io/post/licensing-r-packages-that-include-others-code/ -Robert On Tue, Jul 7, 2020 at 1:52 PM Gábor Csárdi wrote: > HI, > > here is an example from a package that was accepted relatively

Re: [R-pkg-devel] First R package, want to release to CRAN, have some questions about R CMD check and README.md

2020-03-07 Thread Robert M. Flight
Umm, but README.md becomes README.html on CRAN, and it is very nice to have. I'm not sure what the error you are seeing is, but having README on CRAN is nice. Have you .Rbuildignore 'd README.Rmd?? That should be ignored if I remember correctly. -Robert On Sat, Mar 7, 2020, 5:55 PM Jeff

Re: [R-pkg-devel] DOI in of package in DESCRIPTION file

2019-12-16 Thread Robert M. Flight
Are you wanting to provide the DOI for citation purposes? Then I would recommend making sure you have a valid citation file https://r-pkgs.org/inst.html#inst-citation (which should be fine having a DOI field), and add it to the README as well. -Robert Robert M Flight, PhD Bioinformatics Research

Re: [R-pkg-devel] Package Etiquette

2018-09-12 Thread Robert M. Flight
Of course, if you do truly decide to *copy* a function from another package, make sure everything is licensed appropriately and the authors given attribution! -Robert On Wed, Sep 12, 2018, 8:09 AM Robert M. Flight wrote: > Regarding still wanting to copy functions situation, I did this for

Re: [R-pkg-devel] Package Etiquette

2018-09-12 Thread Robert M. Flight
Regarding still wanting to copy functions situation, I did this for my knitrProgressBar PKG, as it makes the progress R6 object from dplyr a first class citizen of the PKG, and dplyr has a lot of dependencies that I didn't want to force just to use their pre-existing progress bar. Robert On Wed,

[R-pkg-devel] licensing and releasing a package that copies code from dplyr

2018-01-29 Thread Robert M. Flight
ance would be very much appreciated. Thanks, -Robert Robert M Flight, PhD Bioinformatics Research Associate Puller of Rabbits from Hats Research Parasite Resource Center for Stable Isotope Resolved Metabolomics Manager, Systems Biology and Omics Integration Journal Club Markey Cancer Center C

Re: [R-pkg-devel] How to include examples that run > 5 secs and contain personal info

2017-11-07 Thread Robert M. Flight
single case to make sure that particular function works. These might be helpful: https://www.mango-solutions.com/blog/testing-without-the-internet-using-mock-functions Also, look at the use of this functionality in devtools: https://github.com/hadley/devtools/search?utf8=%E2%9C%93=with_mock= Hope th