Re: [Rd] [EXTERNAL] Re: list of methods

2018-06-26 Thread Therneau, Terry M., Ph.D. via R-devel
gets a lot less for free since length() returns twice their logical > length, an unfortunate inconsistency. > > Michael > > > > On Tue, Jun 26, 2018 at 11:24 AM, Therneau, Terry M., Ph.D. via > R-devel wrote: >> I recently got a request to add head() and tail

[Rd] list of methods

2018-06-26 Thread Therneau, Terry M., Ph.D. via R-devel
I recently got a request to add head() and tail() methods for Surv objects, which is quite reasonable, but not unlike other requests for logLik,  vcov, extractAIC, ...   What they all have in common is that are methods added since creation of the survival package, and that I didn't know they

[Rd] new behavior of model.response

2018-06-27 Thread Therneau, Terry M., Ph.D. via R-devel
I am getting some unexplained changes in the latest version of survival, and finally traced it down to this: model.response acts differently for Surv objects. Here is a closed form example using a made up class Durv = diagnose survival.   I tracked it down by removing methods one by one from

Re: [Rd] new behavior of model.response

2018-06-27 Thread Therneau, Terry M., Ph.D. via R-devel
Charles Berry pointed out an error in my reasoning.   In the current survival I forgot the S3method line for length in the NAMESPACE file, so the behavior is really not new.  Nonetheless it remains surprising and non-intuitive.  Why does model.response sometimes attach spurious names, when

Re: [Rd] new behavior in model.response

2018-06-27 Thread Therneau, Terry M., Ph.D. via R-devel
I now understand the issue, which leads to a different and deeper issue which is "how to assign a proper length to Surv objects". > Surv(c(1,2,3), c(1,0,1)) [1] 1  2+ 3 The above prints as 3 elements and is conceptually 3 elements. But if I give it length method to return a 3 then I need a

Re: [Rd] [EXTERNAL] Re: issue with model.frame()

2018-05-01 Thread Therneau, Terry M., Ph.D. via R-devel
is to use multiple ridge() calls to break it up; since he/she was using a fixed tuning parameter the result is the same. Terry T. On 05/01/2018 11:43 AM, Berry, Charles wrote: On May 1, 2018, at 6:11 AM, Therneau, Terry M., Ph.D. via R-devel <r-devel@r-project.org> wrote: A user s

Re: [Rd] issue with model.frame()

2018-05-01 Thread Therneau, Terry M., Ph.D. via R-devel
I want to add that the priority for this is rather low, since we have a couple of work arounds for the user/data set in question. I have some ideas about changing the way in which ridge() works, which might make the problem moot. The important short-term result was finding that it wasn't an

[Rd] issue with model.frame()

2018-05-01 Thread Therneau, Terry M., Ph.D. via R-devel
A user sent me an example where coxph fails, and the root of the failure is a case where names(mf) is not equal to the term.labels attribute of the formula -- the latter has an extraneous newline. Here is an example that does not use the survival library. # first create a data set with many

[Rd] Fwd: Re: [EXTERNAL] Re: backquotes and term.labels

2018-03-08 Thread Therneau, Terry M., Ph.D. via R-devel
odel frame (without backticks) as an attribute for later retrieval: https://github.com/lme4/lme4/commit/56416fc8b3b5153df7df5547082835c5d5725e89. On Wed, Mar 7, 2018 at 8:22 AM, Therneau, Terry M., Ph.D. via R-devel <r-devel@r-project.org> wrote: Thanks to Bill Dunlap for the clarificatio

Re: [Rd] [EXTERNAL] Re: Fwd: Re: Re: backquotes and term.labels

2018-03-08 Thread Therneau, Terry M., Ph.D. via R-devel
Ben, I looked at the source code you pointed out, and the line fr <- fr[attr(terms(fr),"varnames.fixed")] sure looks to me as though the terms() function has returned an object with a varnames.fixed attribute. Either that or your code has inside knowledge that a reader like me won't know.

Re: [Rd] backquotes and term.labels

2018-03-07 Thread Therneau, Terry M., Ph.D. via R-devel
"`x y z`" >   ll <- attr(Terms, "term.labels") > gsub("^`|`$", "", ll) [1] "log(`b$a$d`)" "x y z" It is a bit of a mess. Bill Dunlap TIBCO Software wdunlap tibco.com <http://tibco.com> On Mon, Mar 5, 2018 at 12:55 PM, Thern

[Rd] survival updates and testing

2018-04-06 Thread Therneau, Terry M., Ph.D. via R-devel
I've run the latest version of survival through the test suites of 486 of the 565 packages that depend on it (Depends, Imports, LinkingTo, Suggests), and have a couple small issues that I'm taking to other authors about. The exercise turned up a half dozen real errors in my package.  I plan to

[Rd] strange warning: data() error?

2018-04-16 Thread Therneau, Terry M., Ph.D. via R-devel
A user asked me about this and I can't figure it out. tmt% R R Under development (unstable) (2018-04-09 r74565) -- "Unsuffered Consequences" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) > library(survival) > data(cgd0) Warning message: In

[Rd] backquotes and term.labels

2018-03-05 Thread Therneau, Terry M., Ph.D. via R-devel
A user reported a problem with the survdiff function and the use of variables that contain a space.  Here is a simple example.  The same issue occurs in survfit for the same reason. lung2 <- lung names(lung2)[1] <- "in st"   # old name is inst survdiff(Surv(time, status) ~ `in st`, data=lung2)

Re: [Rd] new behavior in model.response -- Solved

2018-06-28 Thread Therneau, Terry M., Ph.D. via R-devel
Thanks to multiple readers for comments and patience as I sorted this out.  I now have working length and names methods for Surv objects, which do not seem to break anything.   I just ran the test suites for 471 packages that depend on survival, but I don't test against bioconductor so

[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] maximum matrix size

2018-10-03 Thread Therneau, Terry M., Ph.D. via R-devel
r > On Tue, Oct 2, 2018 at 9:43 AM Therneau, Terry M., Ph.D. via R-devel > wrote: >> I am now getting the occasional complaint about survival routines that are >> not able to >> handle big data. I looked in the manuals to try and update my >> understanding of max >&

[Rd] maximum matrix size

2018-10-02 Thread Therneau, Terry M., Ph.D. via R-devel
I am now getting the occasional complaint about survival routines that are not able to handle big data.   I looked in the manuals to try and update my understanding of max vector size, max matrix, max data set, etc; but it is either not there or I missed it (the latter more likely).   Is it

[Rd] Hex sticker

2019-01-22 Thread Therneau, Terry M., Ph.D. via R-devel
Is there a canonical place to add a hex sticker to a package?    I've found use of man/figures and inst/. A nice sticker has been made for survival and since it is a required package I don't want to mess it up. Terry T. [[alternative HTML version deleted]]

[Rd] issue with testInstalledPackage

2018-11-26 Thread Therneau, Terry M., Ph.D. via R-devel
Background: I run tools::testInstalledPackage on all packages that dependend on survival (605 as of today) before sending a new release to CRAN. It has a few false positives which I then follow up on.  (Mostly packages with as-yet-incomplete tests in their inst directory).  Issue:

[Rd] subscripting a terms object

2019-04-04 Thread Therneau, Terry M., Ph.D. via R-devel
Someone sent me a bug report for survival2.44.1-1 that involves a model with both cluster and offset.  It turns out to be a 3 part issue with [.terms and my own untangle.specials routine.   I've spent an evening sorting out the details.   1. The delete.response() function doesn't remove the

[Rd] all.equal failure

2019-04-05 Thread Therneau, Terry M., Ph.D. via R-devel
This arose in testing [.terms and has me confused. data(esoph)   # use a standard data set t0x <- terms(model.frame( ~ tobgp, data=esoph)) t1 <-  terms(model.frame(ncases ~ agegp + tobgp, data=esoph)) t1x <- (delete.response(t1))[-1] > all.equal(t0x, t1x) [1] TRUE # the above is wrong,

[Rd] [.terms issue

2019-04-05 Thread Therneau, Terry M., Ph.D. via R-devel
As  footnote, the error in survival:::untangle.specials is that it assumed that if attr(myterms, 'specials')[['strata']] was = to 4, then one could use myterms[-4] to remove the strata term.   Not so.   In the model  y ~  x1 + x2 + strata(x3)  the attritube will be 4 -- the response counts

Re: [Rd] [EXTERNAL] Re: all.equal failure

2019-04-05 Thread Therneau, Terry M., Ph.D. via R-devel
e: > On 05/04/2019 9:03 a.m., Therneau, Terry M., Ph.D. via R-devel wrote: >> This arose in testing [.terms and has me confused. >> >> data(esoph)   # use a standard data set >> >> t0x <- terms(model.frame( ~ tobgp, data=esoph)) >> t1 <-  terms(

Re: [Rd] [EXTERNAL] Re: Re: all.equal failure

2019-04-05 Thread Therneau, Terry M., Ph.D. via R-devel
tool for testing certain code issues". Thanks for the pointer, Terry On 4/5/19 9:00 AM, Duncan Murdoch wrote: On 05/04/2019 9:03 a.m., Therneau, Terry M., Ph.D. via R-devel wrote: This arose in testing [.terms and has me confused. data(esoph)   # use a standard data set t0x <- term

Re: [Rd] all.equal failure and [.terms

2019-04-05 Thread Therneau, Terry M., Ph.D. via R-devel
The all.equal was a side issue for me; I don't have strong opinions one way or the other.  You are welcome to leave me out of the loop on that.  (Or leave me on the cc, whatever is easiest).  I will update the survival package once the [.terms issues are addressed.  One debatable issues is

Re: [Rd] [EXTERNAL] Re: issue with latest release of R-devel

2019-03-28 Thread Therneau, Terry M., Ph.D. via R-devel
xport _R_RNG_VERSION_=3.5.0 > > might remove/explain those errors. > > Just a thought > > Henrik > > On Wed, Mar 27, 2019 at 8:16 PM Therneau, Terry M., Ph.D. via R-devel > wrote: >> I'm getting ready to submit an update of survival, and is my habit I run the >

Re: [Rd] default for 'signif.stars'

2019-03-28 Thread Therneau, Terry M., Ph.D. via R-devel
The addition of significant stars was, in my opinion, one of the worst defaults ever added to R.   I would be delighted to see it removed, or at least change the default.  It is one of the few overrides that I have argued to add to our site-wide defaults file. My bias comes from 30+ years in

[Rd] issue with latest release of R-devel

2019-03-27 Thread Therneau, Terry M., Ph.D. via R-devel
I'm getting ready to submit an update of survival, and is my habit I run the checks on all packages that depend/import/suggest  survival.  I am getting some very odd behaviour wrt non-reproducability.  It came to a head when some things failed on one machine and worked on another.   I found

Re: [Rd] as.data.frame.table() does not recognize default.stringsAsFactors()

2019-03-15 Thread Therneau, Terry M., Ph.D. via R-devel
I have to disagree with both Peter and Martin on this. The underneath issue is that the automatic conversion of characters to factors by the data.frame functions was the single most egregious design blunder in the Statistical Models in S book, and we are still living with it.  The

[Rd] survival changes

2019-06-01 Thread Therneau, Terry M., Ph.D. via R-devel
In the next version of the survival package I intend to make a non-upwardly compatable change to the survfit object.  With over 600 dependent packages this is not something to take lightly, and I am currently undecided about the best way to go about it.  I'm looking for advice. The change:

Re: [Rd] [EXTERNAL] Re: survival changes

2019-06-01 Thread Therneau, Terry M., Ph.D. via R-devel
On 6/1/19 1:32 PM, Marc Schwartz wrote: On Jun 1, 2019, at 12:59 PM, Peter Langfelder wrote: On Sat, Jun 1, 2019 at 3:22 AM Therneau, Terry M., Ph.D. via R-devel wrote: In the next version of the survival package I intend to make a non-upwardly compatable change to the survfit object

[Rd] making a vignette optional

2019-06-18 Thread Therneau, Terry M., Ph.D. via R-devel
I had added a vignette to the coxme package and all worked well locally, but it failed at CRAN. The issue is that the vignette involves using coxme for pedigree data, it doesn't work without the kinship2 package, and I hadn't put in the necessary "if (require(" logic. The question

[Rd] memory access question

2019-06-29 Thread Therneau, Terry M., Ph.D. via R-devel
I had a problem with the latest iteration of the survival package  (one that I hope to post to Github next week) where it would die in strange ways, i.e., work on one box and not on another, a vignette would compile if I invoked Sweave myself but fail in R CMD build, etc.   The type of thing

[Rd] ASAN error with R-devel

2019-07-01 Thread Therneau, Terry M., Ph.D. via R-devel
I have an ASAN enabled version of R-devel on my test machine, and can get it to relably crash.  Here is the first part of the session: tmt-local2434% R --vanilla R Under development (unstable) (2019-06-28 r76752) -- "Unsuffered Consequences" Platform: x86_64-pc-linux-gnu (64-bit) R is free

[Rd] reverse dependency checks

2019-09-03 Thread Therneau, Terry M., Ph.D. via R-devel
I remember there was advice about a server that one could use for reverse dependency checks, but I forgot to write it down.  (Or I did save the info and forgot where I saved it...)   I have been doing the checks for survival myself, but the count is getting out of hand (663, not counting

[Rd] problem with R CMD check

2019-08-23 Thread Therneau, Terry M., Ph.D. via R-devel
For a new release of survival, I normally run  R CMD check for every one of the packages that depend on survival  (forewarned is forearmed). I updated R-devel on the test machine this morning, and R CMD check --as-cran survival_3.0-9.tar.gz works as desired. When I run the check routine on

[Rd] install_github and survival

2019-09-05 Thread Therneau, Terry M., Ph.D. via R-devel
I treat CRAN as the main repository for survival, but I have also had a github (therneau/survival) version for a couple of years.  It has a vignette2 directory, for instance, that contains extra vignettes that either take too long to run or depend on other packages.  It also gets updated more

Re: [Rd] [EXTERNAL] RE: install_github and survival

2019-09-06 Thread Therneau, Terry M., Ph.D. via R-devel
Yes, that is exactly the problem.  The code found in the "config" script is never run.  But why doesn't it get run? On 9/6/19 5:44 AM, Georgi Boshnakov wrote: > I cloned therneau/survival and the installation failed since there is no > definition for exported function survfit(). > A file seems

Re: [Rd] [EXTERNAL] Re: RE: install_github and survival

2019-09-06 Thread Therneau, Terry M., Ph.D. via R-devel
Many thanks.  Something obvious is sometimes the hardest thing for me to see. Terry On 9/6/19 7:10 AM, Iñaki Ucar wrote: > On Fri, 6 Sep 2019 at 14:08, Therneau, Terry M., Ph.D. via R-devel > wrote: >> Yes, that is exactly the problem. The code found in the "config" s

Re: [Rd] [EXTERNAL] Re: Potential bug in update.formula when updating offsets

2019-08-06 Thread Therneau, Terry M., Ph.D. via R-devel
Yes, it is almost certainly the same issue.  At useR I promised Martin that I would put together a clear example and fix for him and I have not yet done so.  I will try to do that this week.   The heart of the issue is that in a terms object the offset expression will apear in the

[Rd] Error in [.terms

2019-10-04 Thread Therneau, Terry M., Ph.D. via R-devel
Martin,   There are a couple of issues with [.terms that have bitten my survival code.  At the useR conference I promised you a detailed (readable) explanation, and have been lax in getting it to you. The error was first pointed out in a bugzilla note from 2016, by the way.  The current

Re: [Rd] specials issue, a heads up

2020-02-24 Thread Therneau, Terry M., Ph.D. via R-devel
so that it does not try to call cluster? Another approach I tried was not exporting cluster(), but that fails when model.frame tries to call it. Terry On 2/24/20 12:21 PM, Duncan Murdoch wrote: > On 24/02/2020 8:55 a.m., Therneau, Terry M., Ph.D. via R-devel wrote: >> I recently had

[Rd] rounding change

2020-03-05 Thread Therneau, Terry M., Ph.D. via R-devel
This is a small heads up for package maintainers.   Under the more recent R-devel, R CMD check turned up some changes in the *.out files.   The simple demonstration is to type  "round(51/80, 3)", which gives .638 under the old and .637 under the new.   (One of my coxph test cases has a

[Rd] survival bug?

2020-03-03 Thread Therneau, Terry M., Ph.D. via R-devel
My latest submission of survival3.1-10 to CRAN fails  a check, but only on windows, which I don't use. How do I track this down? The test in question works fine on my Linux box. Terry [[alternative HTML version deleted]] __

[Rd] specials issue, a heads up

2020-02-24 Thread Therneau, Terry M., Ph.D. via R-devel
I recently had a long argument wrt the survival package, namely that the following code didn't do what they expected, and so they reported it as a bug   survival::coxph( survival::Surv(time, status) ~ age + sex + survival::strata(inst), data=lung) a. The Google R style guide  recommends

Re: [Rd] as-cran issue

2020-01-13 Thread Therneau, Terry M., Ph.D. via R-devel
delbuettel wrote: On 13 January 2020 at 10:02, Therneau, Terry M., Ph.D. via R-devel wrote: | Where can I find out (and replicate) what options as-cran turns on? See the file src/library/tools/R/check.R in the R sources, and grep for as_cran which is the internal variable controlled by the --as-c

[Rd] Error in R CMD check --as-cran ?

2020-01-13 Thread Therneau, Terry M., Ph.D. via R-devel
I've been fighting a CMD check error for coxme this morning.   I thought I had it fixed, but instead I had forgotton --as-cran on my last test run.  So the version just submitted to CRAN has warning messages in the log. I think it is an issue with CRAN.   I've sent a message to R-devel asking

[Rd] as-cran issue

2020-01-13 Thread Therneau, Terry M., Ph.D. via R-devel
Where can I find out (and replicate) what options as-cran turns on? The issue: the following lines generate an error in R CMD check --as-cran  for coxme.  But there is no error without as-cran nor is there one when I run the code in a terminal window. ismat <- function(x)  inherits(x,

Re: [Rd] as-cran issue, SOLVED

2020-01-13 Thread Therneau, Terry M., Ph.D. via R-devel
Thank you to all who replied with helpful suggestions.   I had to run off to meetings and talks for a bit so am now processing it all. 1. It turns out that the issue was not with coxme, but with bsdmatrix, a package that coxme calls.  It just happens to have a function ismat() with the same

Re: [Rd] survival bug? - solved

2020-03-05 Thread Therneau, Terry M., Ph.D. via R-devel
 I ended up finding the issue by a focused code review. Once in the past, I had a version that would fail under one architecture but not another, in that case some help from Brian Ripley pointed me to the offending line of C code.   That line read, but did not write, at an invalid memory

[Rd] ASAN

2020-04-07 Thread Therneau, Terry M., Ph.D. via R-devel
I'm trying to chase down a possible issue with the survival package, and so was trying to resurrect my ASAN version of r-devel.   I added the lines to config.site for CC, CFLAGS and MAIN_LDFLAGS per section 4.3.3 of the  'packages' documentation, and lines to ~/.R/Makevars. I followed that

[Rd] Extra "Note" in CRAN submission

2020-09-25 Thread Therneau, Terry M., Ph.D. via R-devel
When I run R CMD check on the survival package I invariably get a note: ... * checking for file ‘survival/DESCRIPTION’ ... OK * this is package ‘survival’ version ‘3.2-6’ * checking CRAN incoming feasibility ... NOTE Maintainer: ‘Terry M Therneau ’ ... This is sufficient for the auto-check

[Rd] Issue with data() function

2020-10-23 Thread Therneau, Terry M., Ph.D. via R-devel
I found an issue with the data() command this evening when working on the survival package. 1. I have a lot of data sets in the package, almost all used in at least one vignette, help file, or test.  As a space saving measure, I have bundled many of them together, i.e., the file

Re: [Rd] Issue with data() function

2020-10-25 Thread Therneau, Terry M., Ph.D. via R-devel
into a single .rda file does save space, but it causes some issues with data().   The overall tarball goes from 7480 to 6100 in size (ls -s).   Terry On 10/24/20 4:28 AM, Duncan Murdoch wrote: > On 23/10/2020 9:25 p.m., Therneau, Terry M., Ph.D. via R-devel wrote: >> I found an issue with

[Rd] CRAN checks and ASAN

2020-06-11 Thread Therneau, Terry M., Ph.D. via R-devel
I have a version of R-devel on my development box that has the address sanitizer turned on.   This was instrumental in finding a pair of subtle memory issues.  (I had read, but never written, one element past the end of an array, which caused issues on some architectures.) 1. I now get a

[Rd] anonymous functions

2020-12-07 Thread Therneau, Terry M., Ph.D. via R-devel
“The shorthand form \(x) x + 1 is parsed as function(x) x + 1. It may be helpful in making code containing simple function expressions more readable.” Color me unimpressed. Over the decades I've seen several "who can write the shortest code" threads: in Fortran, in C, in Splus, ... The same

Re: [Rd] [R/S-PLUS] [EXTERNAL] Re: [External] anonymous functions

2020-12-07 Thread Therneau, Terry M., Ph.D. via R-devel
rs). And of course none work in sapply or lapply. Providing a > shorthand in base may help to improve this. You don't have to use it > if you don't want to, and you can establish coding standards that > disallow it if you like. > > Best, > > luke > > On Mon,

Re: [Rd] .Fortran to .Call

2020-12-28 Thread Therneau, Terry M., Ph.D. via R-devel
Roger,  Over the years I have converted many of the .C calls in the survival package to .Call.  As others have said, the big advantage is memory footprint.  I did it because there are a few users who call survfit or coxph with really large data sets, and not copying the data can be the

[Rd] inheritance and attach

2021-03-15 Thread Therneau, Terry M., Ph.D. via R-devel
This change in R-devel just bit me.   Under the newest release, if I attach() another .RData directory, the methods are not detected. Was it intentional?   Running in Linux.   Here is a script of an example that works fine under 3.6.2. but fails in R-devel. tmt% mkdir temp1 tmt% cd temp1 tmt%

Re: [Rd] [EXTERNAL] Re: inheritance and attach

2021-03-15 Thread Therneau, Terry M., Ph.D. via R-devel
Simon > > > >> On Mar 16, 2021, at 7:19 AM, Therneau, Terry M., Ph.D. via R-devel >> wrote: >> >> This change in R-devel just bit me. Under the newest release, if I >> attach() another >> .RData directory, the methods are not detected. >>

[Rd] issue with data()

2021-02-16 Thread Therneau, Terry M., Ph.D. via R-devel
I am testing out the next release of survival, which involves running R CMD check on 868 CRAN packages that import, depend or suggest it. The survival package has a lot of data sets, most of which are non-trivial real examples (something I'm proud of).  To save space I've bundled many of

Re: [Rd] Compression (really about LazyDate)

2021-02-19 Thread Therneau, Terry M., Ph.D. via R-devel
Thank you Brian.   I had not quite grasped how the process works, now the descriptions and usage make sense. Terry On 2/19/21 4:28 AM, Prof Brian Ripley wrote: > On 18/02/2021 18:30, Therneau, Terry M., Ph.D. via R-devel wrote: >> This is a CRAN question: >> >> I have t

[Rd] reverse dependency checks

2021-02-18 Thread Therneau, Terry M., Ph.D. via R-devel
There are some nice tools to automate reverse dependency checks, but for a large package the real issue is the envirionment.  The description of the crandalf site on github has a nice summary.  One package uses a cryto libraries (oops, install those), another uses some latex macros I've

[Rd] Compression

2021-02-18 Thread Therneau, Terry M., Ph.D. via R-devel
This is a CRAN question: I have taken care to compress files in the data directory using "xz" (and checked that it is the best).  Is there then any impact or use for the LazyDataCompression option in the DESCRIPTION file? -- Terry M Therneau, PhD Department of Health Science Research Mayo

[Rd] Issues with drop.terms

2021-08-23 Thread Therneau, Terry M., Ph.D. via R-devel
This is a follow-up to my earlier note on [.terms.   Based on a couple days' work getting the survival package to work around  issues, this will hopefully be more concise and better expressed than the prior note. 1. test1 <- terms( y ~ x1:x2 + x3) check <- drop.terms(termobj =test1, dropx =

[Rd] problems with [.terms

2021-08-21 Thread Therneau, Terry M., Ph.D. via R-devel
The survival package uses [.terms a fair bit, in particular it makes use of the index returned in the 'specials' attribute, but the base R code has at least two problems. First, it does not account for offset terms, if present, and also fails for a formula such as  y ~ age + (sex=='male').  

[Rd] Question about the UCRT switch

2021-12-09 Thread Therneau, Terry M., Ph.D. via R-devel
The connected blog has the statement  "Most authors will not have to do anything as the number of CRAN packages that will need some attention is below 1%, but authors of packages using native (C, C++ or Fortran) code should read the following lines." My packages do use a lot of C, but I never

Re: [Rd] as.Date withoug "origin"

2022-11-03 Thread Therneau, Terry M., Ph.D. via R-devel
Add my name to those who think this is a good change. As someone who works daily with medical research data, the number of times I have been caugth by failure of statements like    as.Date(ifelse( is.na(prog.dt), lastfu.dt, prog.dt) is a large annoyance.    Replace ifelse by any number of

Re: [Rd] Difficult debug - follow-up

2024-02-19 Thread Therneau, Terry M., Ph.D. via R-devel
I want to thank Ivan and Bill for useful advice.   I eventually found my memory mistake, which was of the 'obvious once you see it' variety.  Ivan's note that it appeared to be in a small allocation was correct. >   I've hit a roadblock debugging a new update to the survival package. I do >

[Rd] Difficult debug

2024-02-07 Thread Therneau, Terry M., Ph.D. via R-devel
 I've hit a roadblock debugging a new update to the survival package.   I do debugging in a developement envinment, i.e. I don't create and load a package but rather  source all the .R files and dyn.load an .so file, which makes things a bit easier.   Running with R -d "valgrind

Re: [Rd] Petition to set warnPartialMatch* options to TRUE

2024-04-23 Thread Therneau, Terry M., Ph.D. via R-devel
Let me give partial assent to Michael's suggestion:  a) have an easy way to turn this on and b) add a strong suggestion to do so to the WRE manual. Kurt's example in the email shows how to do (a);  but I just looked in the WRE manual and don't see any reference to it, nor any mention from R

[Rd] Vignettes with long compute time

2024-03-11 Thread Therneau, Terry M., Ph.D. via R-devel
Is there a way to include the compiled version of a vignette in the doc directory but mark it to NOT be rerun by CRAN?   I think I remember that this is possible, but have forgotton how.   (It might even be a false memory.) Terry T. Background:  Beth Atkinson and I are splitting out many of