Re: [Rd] invisible functions

2018-10-16 Thread Duncan Murdoch
On 16/10/2018 6:42 PM, Therneau, Terry M., Ph.D. via R-devel wrote: The survival package, like many others, has several helper functions that are not declared in the namespace, since their only use is to be called by other "main" functions of the package.  This works well since the functions in

[Rd] invisible functions

2018-10-16 Thread Therneau, Terry M., Ph.D. via R-devel
The survival package, like many others, has several helper functions that are not declared in the namespace, since their only use is to be called by other "main" functions of the package.  This works well since the functions in the survival namespace can see them --- without ::: arguments ---

Re: [Rd] sys.call() inside replacement functions incorrectly returns *tmp*

2018-10-16 Thread Emil Bode
Well, I think what you want to do is hard if you insist on using a replacement function, i.e. massign(vars) <- values. But as you wrote, you can use a modified assignment operator, or you could write something comparable to assign, so massign(listofvars, listofvalues, environment) shouldn’t be

Re: [Rd] sys.call() inside replacement functions incorrectly returns *tmp*

2018-10-16 Thread Barry Rowlingson
On Tue, Oct 16, 2018 at 12:03 AM Abs Spurdle wrote: > Probably the best example I can think of is converting cartesian > coordinates to polar coordinates. > Then we might have something like (note, untested, written in my email): > cart2polar = function (x, y) > list (theta=atan (y / x), r=sq

[Rd] broken link to Titanic data

2018-10-16 Thread Ben Bolker
This URL, which appears in the ?Titanic web page: https://www.amstat.org/publications/jse/v3n3/datasets.dawson.html gives me a 404 error. Googling "Dawson titanic data" gives ww2.amstat.org/publications/jse/v3n3/datasets.dawson.html which is similarly broken. Poking around gives this pre