Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-28 Thread J C Nash
) x^2 + 1) >> eb$fn > function(x) x^2 + 1 >> >> ## ea$fn is still the same: >> ea$fn > function(x) x^2 - 2*x + 1 >> > > Obviously, in this case some further arrangements are needed for the > environments to be made available to the external wo

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-28 Thread Duncan Murdoch
7, 2018 8:44 PM To: Richard M. Heiberger Cc: List r-package-devel Subject: Re: [R-pkg-devel] Trying to work around missing functionality Unfortunately, makes things much worse. I'd tried something like this already. * checking examples ... ERROR Running examples in ‘rootoned-Ex.R’ failed The err

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-28 Thread Georgi Boshnakov
he source file containing the command isn’t important.) > > I hope this helps, > John > > ----- > John Fox > Professor Emeritus > McMaster University > Hamilton, Ontario, Canada > Web: https://socialscienc

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-28 Thread J C Nash
ario, Canada > Web: https://socialsciences.mcmaster.ca/jfox/ > > > >> -Original Message- >> From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On >> Behalf Of J C Nash >> Sent: Monday, August 27, 2018 8:44 PM >> To:

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-27 Thread Fox, John
/ > -Original Message- > From: R-package-devel [mailto:r-package-devel-boun...@r-project.org] On > Behalf Of J C Nash > Sent: Monday, August 27, 2018 8:44 PM > To: Richard M. Heiberger > Cc: List r-package-devel > Subject: Re: [R-pkg-devel] Trying to work around

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-27 Thread J C Nash
Unfortunately, makes things much worse. I'd tried something like this already. > * checking examples ... ERROR > Running examples in ‘rootoned-Ex.R’ failed > The error most likely occurred in: > >> ### Name: rootwrap >> ### Title: zeroin: Find a single root of a function of one variable within

Re: [R-pkg-devel] Trying to work around missing functionality

2018-08-27 Thread Richard M. Heiberger
Does this solve the problem? if (getRversion() >= '2.15.1') globalVariables(c('envroot')) I keep this in file R/globals.R I learned of this from John Fox's use in Rcmdr. On Mon, Aug 27, 2018 at 8:28 PM, J C Nash wrote: > In order to track progress of a variety of rootfinding or optimization

[R-pkg-devel] Trying to work around missing functionality

2018-08-27 Thread J C Nash
In order to track progress of a variety of rootfinding or optimization routines that don't report some information I want, I'm using the following setup (this one for rootfinding). TraceSetup <- function(ifn=0, igr=0, ftrace=FALSE, fn=NA, gr=NA){ # JN: Define globals here groot<-list(ifn=ifn,