Re: [R-pkg-devel] How do you make it possible to run the example that requires a Conda environment?

2025-03-07 Thread Brian G. Peterson
access specific optional functionality. -- Brian G. Peterson ph: +1.773.459.4973 im: bgpbraverock On Fri, 2025-03-07 at 07:36 -0800, Josiah Parry wrote: > Whereas, I just had a CRAN submission fail for using \dontrun{} just > once! > 🙈 > > On Fri, Mar 7, 2025 at 06:47 McCrowey, Cli

Re: [R-pkg-devel] 'library' or 'require' call not declared

2025-02-06 Thread Brian G. Peterson
Add 'MASS' to either Suggests or Imports  If you add it to Imports, you'll need to add the requisite function imports, but if the only place you use MASS is in 'demo' (maybe a more searchable name is in order here?), then 'Suggests' should be plenty. Brian On Fri, 2025-02-07 at 03:57 +, Ri

Re: [R-pkg-devel] conditional import of a package?

2024-12-04 Thread Brian G. Peterson
pattern is something like this: if(optimize_method=="pso"){    stopifnot("package:pso" %in% search() || requireNamespace("pso",quietly = TRUE) )   # ... } where all the code that requires the 'pso' engine in this example is contained inside the i

Re: [R-pkg-devel] Is R-Forge dead?

2024-07-01 Thread Brian G. Peterson
ting an svn repo to git: Ref: https://docs.github.com/en/migrations/importing-source-code/using-the-command-line-to-import-source-code/importing-a-subversion-repository -- Brian G. Peterson ph: +1.773.459.4973 im: bgpbraverock On Mon, 2024-07-01 at 18:04 -0400, Kevin R. Coombes wrote: >

Re: [R-pkg-devel] How to reduce examples in a package that takes more than 5 seconds to run?

2022-12-15 Thread Brian G. Peterson
On 12/15/22 08:34, Ismail Otoakhia wrote: The R package 'ardl.nardl' has some examples that take more than 5 seconds to run. I was advised by the CRAN team to reduce the run time to less than 5 seconds. How can this be achieved? - you can lower the amount of data in the example - you can use

Re: [R-pkg-devel] NOTE in r-devel-linux-x86_64-fedora-clang

2020-08-07 Thread Brian G. Peterson
On Fri, 2020-08-07 at 15:46 +0100, Gábor Csárdi wrote: > If you want to link to a package in the documentation, you'll have to > add it to Suggests. This doesn't make any sense. If you don't use the code from that package anywhere, then a cross-reference to that package should not require the e

Re: [R-pkg-devel] Help with Error Messages

2020-03-30 Thread Brian G. Peterson
On Mon, 2020-03-30 at 10:18 -0400, Kelsey Chetnik wrote: > Hi, > > I am submitting a package to CRAN for the first time and I am not > sure what > the following error means and how to solve it: > https://win-builder.r-project.org/incoming_pretest/MetaClean_0.1.0_20200330_150936/Windows/00install.o

Re: [R-pkg-devel] Winbuilder 'experimental' toolchain 4-5x slower than all other architectures

2020-02-05 Thread Brian G. Peterson
timings are similarly 4-5x slower on the Windows experimental toolchain. Brian On Wed, 2020-02-05 at 14:59 +, Gábor Csárdi wrote: > Can you please show some numbers? > > Thanks, > Gabor > > On Wed, Feb 5, 2020 at 2:40 PM Brian G. Peterson > wrote: > > We've

[R-pkg-devel] Winbuilder 'experimental' toolchain 4-5x slower than all other architectures

2020-02-05 Thread Brian G. Peterson
ackage PerformanceAnalytics to CRAN, but the Windows experimental toolchain is preventing a 100% clean set of checks. Regards, Brian -- Brian G. Peterson ph: +1.773.459.4973 im: bgpbraverock __ R-package-devel@r-project.org mailing list https://stat

Re: [R-pkg-devel] R package which creates a directory in the user home dir

2019-10-17 Thread Brian G. Peterson
. otherwise create the subdirectory of the current working directory, load from the internet, and save the data locally. In this way you've had the user explicitly direct the function to save data to disk, which is (usually) OK. Regards, Brian -- Brian G. Peterson ph: +1.773.459.49

Re: [R-pkg-devel] Linking with OpenBLAS complains lapacke not found

2019-09-08 Thread Brian G. Peterson
formation that might help you sort it out. https://cran.r-project.org/web/packages/gcbd/vignettes/gcbd.pdf Regards, Brian -- Brian G. Peterson ph: +1.773.459.4973 im: bgpbraverock __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/m

Re: [R-pkg-devel] R package development

2019-01-02 Thread Brian G. Peterson
Normally you do not need to specify @usage in roxygen source files. As Duncan noted, without seeing everything, we are only guessing, but I suspect that you have tried to combine manual @usage directives with @alias or @Rdfile directives in the roxygen for the other functions. If my guesses a

[R-pkg-devel] why can't we importFrom 'methods' ?

2018-05-17 Thread Brian G. Peterson
on't want to import all of 'methods', as I only need one function. What am I doing wrong? Regards, Brian -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] GPL + other licence

2018-04-10 Thread Brian G. Peterson
I think you should discuss this with the CRAN maintainers and release the package under GPL. Regards, Brian -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock On Tue, 2018-04-10 at 11:45 +0200, Kasper Daniel Hansen wrote: > There are 3 solutions. (1) You (ge

Re: [R-pkg-devel] Very large packages in Additional_repositories

2018-03-19 Thread Brian G. Peterson
Why not add an install function to foyer that would get the large data package? Have examples and vignette use a small test data set, so only end users would actually install the large data set. Regards, Brian --Brian G. Peterson ph: 773-459-4973im: bgpbraverockSent from my mobile, please

Re: [R-pkg-devel] apparent S3 methods exported but not registered

2018-03-01 Thread Brian G. Peterson
... bumping this in the hopes that someone has an answer ... On Fri, 2018-01-26 at 10:35 -0600, Brian G. Peterson wrote: > I'm preparing a new release of PerformanceAnalytics, and as usual > this brings the host of CRAN checks. > > I get this note: > > * checking S3 gen

[R-pkg-devel] apparent S3 methods exported but not registered

2018-01-26 Thread Brian G. Peterson
to tell R that these *aren't* S3 methods ... Any insight would be greatly appreciated. Regards, Brian -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Licensing of an R package

2018-01-19 Thread Brian G. Peterson
R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel -- Brian G. Peterson http://braverock.com/brian

Re: [R-pkg-devel] issues with SOfun - package upload

2017-11-08 Thread Brian G. Peterson
I think you should be using: Additional_repositories: https://github.com/mrdwab/SOfun since that is the actual repository. Regards, Brian On Wed, 2017-11-08 at 17:01 +0100, LUCA BELMONTE wrote: > Good evening, > > I am trying to upload my package, called PdPDB 2.0. > When building and checkin

Re: [R-pkg-devel] CRAN upload and prechecking confusion

2017-08-24 Thread Brian G. Peterson
(0.9.0) of the package ... The URL's you've referenced have both expired. I would suggest re-running your package checks using R-devel on RHub and Winbuilder first, and copying any output you receive. Then it will be easier for others to help you. Regards, Brian -- Brian G. Peterson htt

Re: [R-pkg-devel] Proper way to cleanup after build third party components?

2017-06-04 Thread Brian G. Peterson
On Sun, 2017-06-04 at 22:56 +0300, Konstantin Sorokin wrote: > I've recently submitted my first package on CRAN and now need to make > some improvements on feedback received from CRAN maintainers. > > https://github.com/thekvs/zstdr > https://cran.r-project.org/web/packages/zstdr/index.html > >

Re: [R-pkg-devel] doMC dependency

2017-05-15 Thread Brian G. Peterson
On Mon, 2017-05-15 at 16:09 +, Christopher Lalansingh wrote: > Hi everyone, > > > I'm preparing to release a package which uses doMC for > parallelization in certain functions. I've used require(doMC) to > specify this for these functions, and importFrom("doMC", > "registerDoMC") in my NAMESP

Re: [R-pkg-devel] R CMD check not finding my vignettes

2017-04-20 Thread Brian G. Peterson
l, tex or pdf file could be output. At some point I may try to clean it up a bit and then maybe the error messages will be less obscure.) Duncan Murdoch [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailin

Re: [R-pkg-devel] best way the handle errors conditionally

2017-03-06 Thread Brian G. Peterson
On Mon, 2017-03-06 at 11:17 +0100, Thierry Onkelinx wrote: > I'd like your advice on handling errors conditionally within a > function. Imagine a function that does several database operations. > The user has the option to run them inside a transaction. So the code > has somewhere near the top: >

Re: [R-pkg-devel] no visible global function definition for ‘par’

2017-01-30 Thread Brian G. Peterson
tupidity.”  > “Never forget that everything Hitler did in Germany was legal.”    > “Forgiveness is not an occasional act, it is a constant attitude.”  > “Injustice anywhere is a threat to justice everywhere.”   > > ― Martin Luther King Jr. > > > On Mon, Jan 30, 2017 at 10:

Re: [R-pkg-devel] no visible global function definition for ‘par’

2017-01-30 Thread Brian G. Peterson
quot;, "pf", "ts", "var") >   importFrom("utils", "read.table", "str", "tail", "write.table") > to your NAMESPACE file. > > Cathy Lee Gierke       > “Darkness cannot drive out darkness: only light can do that. Hate &g

Re: [R-pkg-devel] Description Meta Information Note

2017-01-30 Thread Brian G. Peterson
On Mon, 2017-01-30 at 09:45 -0600, Cathy Lee Gierke wrote: >  building ‘CATkit_2.06.tar.gz’ R CMD build creates a tarball > x-134-84-0-217:CATkit user$ *R CMD check CATkit* but you are checknig the directory, not the tarball. do R CMD check CATkit_2.06.tar.gz instead. Regards, Brian _

Re: [R-pkg-devel] Nit-picky vignette questions

2016-12-08 Thread Brian G. Peterson
In the text of a vignette, I always refer to them with links, just like I would in other documentation: \code{\link[xts]{to.period}} and if I want to be explicit to the reader (who my be reading a format where the links don't resolve, I would say something like: see \code{\link[xts]{to.period}}

Re: [R-pkg-devel] Understanding notes from win-builder

2016-10-03 Thread Brian G. Peterson
In your examples section, do something like this: \donttest{ Sys.sleep(100) # long running example code here } -- Brian On Mon, 2016-10-03 at 10:44 -0700, Roy Mendelssohn - NOAA Federal wrote: > Hi Hadley: > > > You can use \donttest{} to tell CRAN to not run it as part of their > > aut

Re: [R-pkg-devel] Build fails at Travis CI

2016-06-05 Thread Brian G. Peterson
ot; section, it passes. However, I've no clue why. I will appreciate any help on this. I have roxygen set to not Collate on all my development machines. Unless you're using S4 with complicated inheritance, you shouldn't need it, and it has caused me many headaches. Regards, Br

Re: [R-pkg-devel] Data-generating scripts in R packages

2016-03-22 Thread Brian G. Peterson
On Tue, 2016-03-22 at 08:52 -0400, Kevin Coombes wrote: > I'm currently developing an R package that includes a small data set > along with the functions that I want to export. I have an R script that > generates the data set; the computation time is long (well, relative to > the size of the dat

Re: [R-pkg-devel] checking PDF version of manual

2016-01-31 Thread Brian G. Peterson
installation (do I re-install it) or from rcmd Rd2pdf ? Any other user having experienced the same problem ? Patrick __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] browseURL in examples

2015-08-18 Thread Brian G. Peterson
ng other than a demonstration of rendering something to HTML would ever make sense. I think most people explore functions by typing ?functionName Why not just put the links in the documentation for your function? -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraver

Re: [R-pkg-devel] R CMD check package subdirectory warning on filenames

2015-06-18 Thread Brian G. Peterson
haracters are unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" (RFC3986, p. 12) One would assume that R should also allow all unreserved characters in file names for documents, vignettes, etc. Regards, Brian -- Brian G. Pete