Re: [R] [External] Re: [FORGED] Re: Regarding R licensing usage guidance

2019-07-24 Thread Tierney, Luke
Thanks Roy -- I was about to write along the same lines. Best, luke On Wed, 24 Jul 2019, Roy Mendelssohn - NOAA Federal via R-help wrote: > Hi Rolf: > > As they say, do read the posting guide: > >> Good manners: Remember that customs differ. Some people are very direct. >> Others surround eve

Re: [R] [External] Re: R 3.6.1 and apcluster package

2019-07-18 Thread Tierney, Luke
On Thu, 18 Jul 2019, Jan Galkowski wrote: > I have confirmed that a complete workaround to these problems is available > if, as Bill Dunlap suggested, "version=2" is used in all *save* incantations. That will mask this particular symptom, but the real problem is that the C++ code in the package

Re: [R] [External] Re: R 3.6.1 and apcluster package

2019-07-18 Thread Tierney, Luke
Something about the deferred string conversion object in a <- names(attributes(apresX)[[4]][[1]][[1]]) is malformed; .Internal(inspect(a)) also infinite loops. Will try to narrow this down. Best, luke On Thu, 18 Jul 2019, William Dunlap via R-help wrote: > If you use version=3, ascii=TRUE and

Re: [R] [External] Re: Problem with random numbers/seed

2019-06-21 Thread Tierney, Luke
Maybe looking at ?suppressWarnings will make you feel better. Best, luke On Fri, 21 Jun 2019, Steven Yen wrote: > Unhappy but thanks. > Steven > > On 6/22/2019 1:13 AM, Uwe Ligges wrote: >> >> >> On 21.06.2019 19:09, Steven Yen wrote: >>> Now I see that results were replicated but running RNGve

Re: [R] [External] Question about behavior of sample.kind in set.seed (R 3.6)

2019-04-14 Thread Tierney, Luke
Thanks for the report. The sample.kind argument was not being passed on to the .Internal. This is now fixed in R-devel and the R 3.6.0 branch. Best, luke On Fri, 12 Apr 2019, Elizabeth Purdom wrote: > Hello, > > I am trying to update a package for the upcoming release of R, and my unit > tests

Re: [R] Genuine relative paths with R

2018-10-10 Thread Tierney, Luke
If you are always running your main script as 'Rscript myscript.R' then your file argument will appear as '--file=myscript.R' in commandArgs(). So you can use something like scriptFile <- function() { pat <- "^--file=" args <- commandArgs() file <- args[grepl(pat, args, args)]

Re: [R] Default argument not passed to subfunction when argument name matches default expression

2014-03-31 Thread Tierney, Luke
Compiled code gives a better error message (not clear why the interpreter doesn't do this as well): > cmpfun(foo)() Error in bar() : promise already under evaluation: recursive default argument reference or ear$ The environment in which default arguments are evaluated is the environment of the