Re: [R-pkg-devel] Sanitize Input Code for a Shiny App

2023-02-28 Thread Bill Denney
Hi Simon and Ivan, Thanks for confirming my suspicions. The most common case for our code would be generally trusted users within an organization. So, the main threat is lower. But, there may be scenarios that also allow use outside organizations. I think that in the end, we will likely do som

Re: [R-pkg-devel] Conditionally register method with generic in other package

2017-12-06 Thread Bill Denney
> On Dec 6, 2017, at 07:45, Joshua Ulrich wrote: > > To avoid excessive dependencies, I would like to only register > foo.bar() if package A is installed at the time package B is > installed. If package A is installed after package B, then warn the > user when package B is loaded and/or attache

Re: [R-pkg-devel] Testing for a Specific R Error

2017-12-02 Thread Bill Denney
> On Dec 2, 2017, at 09:43, Duncan Murdoch wrote: > > I don't think there's anything better than Bill's solution, though I imagine > it is possible to ask for translation of the message. For example, sqrt(-1) > currently gives a warning with English message "NaNs produced". Another idea just

[R-pkg-devel] Testing for a Specific R Error

2017-12-02 Thread Bill Denney
Hi, I got a message last night that some of the tests in the PKNCA package do not follow best practices. ("Do not test the exact format of R messages (from R itself or from other packages): They change, and they can be translated.") Specifically, I test to ensure that an error is generated wh

Re: [R-pkg-devel] Installing Tests with R Build

2017-11-25 Thread Bill Denney
directory and run the vignette if the tests were installed. Thanks, Bill -Original Message- From: Joshua Ulrich [mailto:josh.m.ulr...@gmail.com] Sent: Saturday, November 25, 2017 9:20 AM To: Bill Denney Cc: Dirk Eddelbuettel ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel

Re: [R-pkg-devel] Installing Tests with R Build

2017-11-23 Thread Bill Denney
Hi Joshua and Dirk, > On Nov 23, 2017, at 10:17, Dirk Eddelbuettel wrote: > > > On 23 November 2017 at 08:07, Joshua Ulrich wrote: > | On Wed, Nov 22, 2017 at 4:21 PM, Bill Denney wrote: > | > When running R BUILD now (via Travis CI), I get an error that the build >

[R-pkg-devel] Installing Tests with R Build

2017-11-22 Thread Bill Denney
Hi, I have a package that I'm trying to make a validation vignette for. The validation vignette is intended to assist users with documentation that the tests work. When running R BUILD now (via Travis CI), I get an error that the build failed trying to build the vignettes. For R CMD install,

Re: [R-pkg-devel] r-quantities seeking feedback

2017-10-06 Thread Bill Denney
Hi Iñaki and David, I fully see the need in a standardized unit package, and I understand the need for propagation of errors (though I'm in the opposite camp to David where I usually need unit tracking and conversion and rarely need error propagation-- though that's because my error propagation

[R-pkg-devel] Loading Libraries Outside of .lib.loc

2017-06-28 Thread Bill Denney
Hi, I'm working on a script to test my library (PKNCA) for what the minimum required version of its dependencies are. Specifically, I've received bug reports when people are using versions of dplyr < 0.5.0. To test my package against old versions of libraries, I'm installing old versions of

Re: [R-pkg-devel] Handling Not-Always-Needed Dependencies? - Part 2

2016-08-04 Thread Bill Denney
On 8/4/2016 11:51 AM, Dirk Eddelbuettel wrote: On 4 August 2016 at 11:46, Paul Gilbert wrote: | If my package has a test that needs another package, but that package is | not needed in the /R code of my package, then I indicate it as | "Suggests", not as "Depends" nor as "Imports". If that packa

Re: [R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
might be worth bringing this up on r-devel/submitting a bug report ... Ben Bolker On 16-07-20 03:13 PM, Bill Denney wrote: Hi François, I thought that was the issue, too, but I confirmed it wasn't that by adding a print statement right above the warning in my code. The print stateme

Re: [R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
something to do with slight differences in rounding. I suggest you use debug() or browser() on each platform to see why your condition is TRUE or FALSE. Cheers, -- François On Wed, Jul 20, 2016 at 2:42 PM, Bill Denney wrote: Hi, I'm developing the PKNCA package, and I've g

[R-pkg-devel] Warning that are Unintentionally OS-Specific (Maybe Bug in warning?)

2016-07-20 Thread Bill Denney
Hi, I'm developing the PKNCA package, and I've got an odd difference between warning behavior on different operating systems that I can't figure out. When I run the following code on Windows 10 (with R 3.3.0), I get the following warning: library(PKNCA) source("https://raw.githubusercontent