Re: [Rd] nrow(rbind(character(), character())) returns 2 (as documented but very unintuitive, IMHO)

2019-05-16 Thread Abby Spurdle
Herve Pages wrote: > In my experience, and more generally speaking, the desire to treat > 0-length vectors as a special case that deviates from the > non-zero-length case has never been productive. Good idea. Gabriel Becker Wrote: > > nrow(rbind(aa = c("a", "b", "c"), AA = character())) > [1] 1

Re: [Rd] print.() not called when autoprinting

2019-05-17 Thread Abby Spurdle
I don't know the answer to your question. However, here's a side issue that may be relevant. Last year, I tried creating my own ecdf object, and redefined the print method for ecdf. It worked ok in the console, interactively. However, when I tried calling the method (with autoprinting) inside an

Re: [Rd] Give update.formula() an option not to simplify or reorder the result -- request for comments

2019-05-19 Thread Abby Spurdle
Hi Pavel (Back On List) And my two cents... > At this time, the update.formula() method always performs a number of > transformations on the results, eliminating redundant variables and > reordering interactions to be after the main effects. > This the proposal is to add an option simplify= (defa

Re: [Rd] Give update.formula() an option not to simplify or reorder the result -- request for comments

2019-05-24 Thread Abby Spurdle
> Martin Maechler has asked me to send this to R-devel for discussion > after I submitted it as an enhancement request ( > https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17563). I think R needs to provide more support for CAS-style symbolic computation. That is, support by either the R langua

Re: [Rd] survival changes

2019-06-01 Thread Abby Spurdle
> 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 chan

Re: [Rd] Offer zip builds

2019-06-03 Thread Abby Spurdle
> If you go here: > https://cran.cnr.berkeley.edu/bin/windows/base > you see EXE installers for Windows. This contrasts with other programming > languages that offer both an executable installer and ZIP files that can be > extracted and run Are you suggesting that R should do the same? If so, I se

Re: [Rd] Offer zip builds

2019-06-05 Thread Abby Spurdle
> If they choose to continue with only EXE, > I will just keep using other programming languages. I did agree with your original suggestion. However, I don't think that a lack of zip formats, is a disincentive from using R. If you have an issue with the Windows installer, the obvious option is to

Re: [Rd] Offer zip builds

2019-06-07 Thread Abby Spurdle
> Just to add to that point - it is expected that the registry is appropriately updated so the correct version of R can be located. Just unpacking a ZIP won't work in general since tools using R have no reliable way to find it. Shouldn't it be sufficient to set the "Path" system or environment var

[Rd] Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.

2019-06-10 Thread Abby Spurdle
I've written what I refer to as an "Integrated Console Environment". Similar to an IDE, but more console oriented, so suitable for running scripts and dynamic programming languages. Also, it's designed to be congruent with the file system. Obviously, I want to support R. However, the long term pla

Re: [Rd] Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.

2019-06-13 Thread Abby Spurdle
I thought that I'd get more feedback. But it's ok, I understand. I wanted to note that I've moved symbyont to GitLab, which is where I should have put it, in the first place. Also, I'm not planning to start another thread. However, if anyone has suggestions six months from now (or six years from

Re: [Rd] Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.

2019-06-14 Thread Abby Spurdle
On Fri, Jun 14, 2019 at 7:24 PM Iñaki Ucar wrote: > > There are many similar projects that are mature I'm not sure what projects you're referring to. If we create some constraints: (1) Internal systems consoles (*plural*). Rules out most things. Noting that many tools are designed to bypass the

Re: [Rd] Halfway through writing an "IDE" with support for R; Proof of concept, and request for suggestions.

2019-06-14 Thread Abby Spurdle
> What about Atom, VS Code and the like? Or what about taking a project > that meets most of the constraints and pushing to cover all of them, > or even forking it and modifying the part you don't like? I'm not prepared to endorse GitHub affiliated software. [[alternative HTML version del

Re: [Rd] head with non integer n returns confusing output

2019-06-22 Thread Abby Spurdle
> `head()` returns a problematic output when a character is fed to its `n` > parameter. > this can lead to an unexpected and inconsistent result. > I would suggest either using `as.integer` consistently on the input, or > having a consistent error for all character input. I use the head() and tail

Re: [Rd] Making R CMD nicer

2019-06-30 Thread Abby Spurdle
> First time posting in the R mailing lists so hopefully this works well. > I noticed when I type `R CMD` I get this unhelpful message: > /usr/lib/R/bin/Rcmd: 60: shift: can't shift that many I wasn't able to reproduce this. Maybe it's a Linux thing. But then, I suspect you've omitted some of your

Re: [Rd] Making R CMD nicer

2019-06-30 Thread Abby Spurdle
usage: exec [-cl] [-a name] file [redirection ...] > > On Windows you indeed get a useful list of commands and more helpful tips. > > Gabor > > > On Sun, Jun 30, 2019 at 11:36 PM Abby Spurdle wrote: > > > > > First time posting in the R mailing lists so hopefully

Re: [Rd] Format printing inside a matrix

2019-07-07 Thread Abby Spurdle
> I am not sure if there is an existing solution to this, but I want my S4 > objects inside a list matrix showing correctly. > R> matrix(lst, 2) > [,1] [,2] [,3] [,4] [,5] > [1,] ????? > [2,] ????? > Is it possible that the print method for matrix can call some

Re: [Rd] Format printing inside a matrix

2019-07-07 Thread Abby Spurdle
> The problem of wrapping the list into a S3/S4 object, i.e. subclassing array > or matrix, is that one also has to define a bunch of methods for subsetting, > joining, etc, in order to make it behave like a list array. False, sorry. Wrapping != Defining a New Class. And you don't have to define a

Re: [Rd] Format printing inside a matrix

2019-07-07 Thread Abby Spurdle
> This works fine but no longer work after we do some simple operations. > myArray[1:2, 1:2, 2] > # [,1] [,2] > # [1,] ?? > # [2,] ?? OK, that's a good point. I didn't think of that. Michael Lawrence was probably correct in his comment: >However, as soon as you start > treat

Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-07-12 Thread Abby Spurdle
> I assume there are lots of backwards-compatibility issues as well as valid > use cases for this behavior, so I guess defaulting to M[1:6, 1:6] is out of > the question. Agree. > Is there any scope for adding a new argument to head.matrix that would > allow this flexibility? I agree with what y

Re: [Rd] Recommended Reading: Advanced R Second Edition

2019-07-21 Thread Abby Spurdle
> After having fully read "Advanced R First Edition" Try the R Manuals. https://cran.r-project.org/manuals.html There's also some good books by John Chambers. > which explains R Language Core concepts cristal clear, I'm assuming that you mean "cr${y}stal clear". > and > shows the motivation be

[Rd] Rtools contains Python interpreter(s), and six copies?

2019-08-01 Thread Abby Spurdle
I've just discovered that Rtools (on Windows) contains Python interpreter(s). I'm assuming that Python is required to build R packages, on all operating systems. I think this is a mistake. Also, by my count, Rtools contains six Python interpreters. I've miscounted, I hope... [[alternativ

Re: [Rd] Rtools contains Python interpreter(s), and six copies?

2019-08-02 Thread Abby Spurdle
(Excerpts only). On Sat, Aug 3, 2019 at 12:48 AM Jeroen Ooms wrote: > > I'm assuming that Python is required to build R packages, on all operating > > systems. > Please don't assume but read the documentation (preferably before posting). I can't find one reference to Python in the documentation:

Re: [Rd] Rtools contains Python interpreter(s), and six copies?

2019-08-02 Thread Abby Spurdle
> > I can't find one reference to Python in the documentation: > Maybe because it's *not* needed? There's a note here though: Thank you. I'm deleting it. [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.et

Re: [Rd] Underscores in package names

2019-08-15 Thread Abby Spurdle
> While > package names are not functions, using dots in package names > encourages the use of dots in functions, a dangerous practice. "dangerous"...? I can't understand the necessity of RStudio and Tiny-Verse affiliated persons to repeatedly use subjective and unscientific phrasing. Elegant, Ad

Re: [Rd] Conventions: Use of globals and main functions

2019-08-27 Thread Abby Spurdle
> this appears to disagree with the software-engineering principle of avoiding > a mutating global state I disagree. In embedded systems engineering, for example, it's customary to use global variables to represent ports. Also, I note that the use of global variables, is similar to using pen and

Re: [Rd] Conventions: Use of globals and main functions

2019-08-27 Thread Abby Spurdle
> "Running R" (in "R Installation and Administration") links to > "Appendix B Invoking R" (in "An Introduction to R"). > However, these sections do not cover the topics in this thread. Sorry, I made a mistake. It is in the documentation (B.4 Scripting with R) e.g. (excerpts only) R CMD BATCH "--a

Re: [Rd] inconsistent handling of factor, character, and logical predictors in lm()

2019-08-30 Thread Abby Spurdle
> I think that it would be better to handle factors, character predictors, and > logical predictors consistently. "logical predictors" can be regarded as categorical or continuous (i.e. 0 or 1). And the model matrix should be the same, either way. I think the first question to be asked is, which

Re: [Rd] inconsistent handling of factor, character, and logical predictors in lm()

2019-08-31 Thread Abby Spurdle
> I think that this misses the point I was trying to make: lm() et al. treat > logical variables as factors, not as numerical predictors. I'm unenthusiastic about mapping TRUE to -1 and FALSE to 1, in the model matrix. (I nearly got that back the front). However, I've decided to agree with your

Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-10-31 Thread Abby Spurdle
On Fri, Nov 1, 2019 at 10:02 AM Pages, Herve wrote: > That would be awesome! More generally I wonder how feasible it would be > to fix all these inheritance quirks where inherits(x, "something"), > is(x, "something"), and is.something(x) disagree. They've been such a > nuisance for so many years..

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-12 Thread Abby Spurdle
>x %inherits% "data.frame" IMHO, I think that user-defined binary operators are being over-used within the R community. I don't think that they're "cute" or stylish. I think their use should be limited to cases, where they significantly increase the readability of the code. However, readab

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-12 Thread Abby Spurdle
> You can have your own rant about "user-defined binary operators being > over-used within the R community" without suggesting that my rant was > rude. I wasn't suggesting that you were rude. I was questioning a trend. __ R-devel@r-project.org mailing l

Re: [Rd] class() |--> c("matrix", "arrary") [was "head.matrix ..."]

2019-11-15 Thread Abby Spurdle
> > And indeed I think you are right on spot and this would mean > > that indeed the implicit class > > "matrix" should rather become c("matrix", "array"). > > I've made up my mind (and not been contradicted by my fellow R > corers) to try go there for R 4.0.0 next April. I'm not enthusiastic a

Re: [Rd] standard naming for components of R data structures

2020-01-06 Thread Abby Spurdle
Do you just need something on pen and paper? (In which case, I don't see why it needs to be "standard"). Or do you need something that can be used with bison/yacc/cup/etc to produce a parser? On a side note, I would say that the R Language Definition is the "standard" way. But I do recognize that

Re: [Rd] as-cran issue ==> set _R_CHECK_LENGTH_1_* settings!

2020-01-14 Thread Abby Spurdle
> I do want to entice people to have a long look beyond closed > source OS into the world of Free Software where not only R is > FOSS (Free and Open Source Software) but (all / almost) all the > tools you use are of that same spirit. And while everyone is talking about operating systems... Recent

Re: [Rd] as-cran issue ==> set _R_CHECK_LENGTH_1_* settings!

2020-01-14 Thread Abby Spurdle
> Which version of Fedora are you on? I've got Fedora 31. I just checked, and R 3.6.2 is available now. Progress... ...however, there's another problem. >From the dependencies: R-java x86_64 3.6.2-1.fc31 updates 10 k R-java-devel x86_64 3.6.2-1.fc31

Re: [Rd] as-cran issue ==> set _R_CHECK_LENGTH_1_* settings!

2020-01-20 Thread Abby Spurdle
> I do want to entice people to have a long look beyond closed > source OS into the world of Free Software where not only R is > FOSS (Free and Open Source Software) but (all / almost) all the > tools you use are of that same spirit. > > Best, > Martin I've reconsidered. You're 100% correct. I'm

Re: [Rd] R package builder silently continues after unclosed brace

2020-01-25 Thread Abby Spurdle
Try R check or the source function: (From R check) > R CMD check testpkg R CMD check testpkg * using log directory 'c:/proj/shared/testpkg.Rcheck' * using R version 3.6.0 (2019-04-26) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'testpk

Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-27 Thread Abby Spurdle
Maybe I'm missing something really obvious here, but I was unable to create a matrix out of POSIXct object(s). Perhaps that deserves a separate discussion...? Regarding your other comments/questions: (1) You should *NOT* mask functions from the graphics package (or base, stats, etc), except possib

Re: [Rd] matplot.Date & matplot.POSIXct

2020-01-28 Thread Abby Spurdle
> > Maybe I'm missing something really obvious here, but I was unable to > > create a matrix out of POSIXct object(s). > > Perhaps that deserves a separate discussion...? >Can you provide an example? -- #date and time objects x = Sys.Date () + 1:16 y = as.POSIXct (x) #matrices str (matrix

Re: [Rd] R 3.6.3 scheduled for February 29

2020-02-06 Thread Abby Spurdle
Congratulations! > celebrate (beeR=TRUE, loud.music=FALSE, nbeeRs=2L, proportion.of.tech.talk=0.4) Why is it the 5th anniversary and the not the 20th anniversary? On Fri, Feb 7, 2020 at 4:58 AM Peter Dalgaard via R-devel wrote: > > Full schedule is available on developer.r-project.org.

Re: [Rd] R --interactive -e 'browser()'

2020-02-22 Thread Abby Spurdle
Here's what I would expect: In interactive mode, input is taken from the user (i.e. command line). In non-interactive mode, input is taken from a text file (or equivalent). What you're trying to do is run R in *non*-interactive mode, and call the browser function. This requires input to come from

Re: [Rd] R --interactive -e 'browser()'

2020-02-22 Thread Abby Spurdle
-like) application specifically to run R, which could allow the user to emulate the behavior of a compiled language (and do a few other things), but I'm wondering if it's ethical to publish it...??? On Sun, Feb 23, 2020 at 10:21 AM Abby Spurdle wrote: > > Here's what I would

Re: [Rd] RIOT 2020

2020-02-26 Thread Abby Spurdle
If people want to create a new interpreter (for R or any other data-driven programming language), or do something closely related (such as adapt an existing interpreter), I think a better strategy would be to focus on real time computing. I note that Oracle who appears to be sponsoring this event,

Re: [Rd] RIOT 2020

2020-02-27 Thread Abby Spurdle
On Thu, Feb 27, 2020 at 3:58 PM Vitek, Jan wrote: > I am a co-organizer of RIOT and spent 10 years building real-time Java > virtual machines. Wow! I'm impressed. Sounds like you've set a precedent for future research in language implementation. > My conclusion: no one cares It sounds like yo

Re: [Rd] ":::" operator doesn't work with data object Ecdat:::Crime

2020-03-17 Thread Abby Spurdle
Crime? (Macavity, Macavity, ..., and when you reach the scene of crime Macavity's not there...) I suspect your data objects are like Macavity, they're not there. I found this in the R Internals 1.17. Lazy-load databases are loaded into the exports for a package, but not into the namespace enviro

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-05 Thread Abby Spurdle
I think POSIXct and POSIXlt are badly-chosen names. The name "POSIX" implies UNIX. (i.e. XYZix operating system is mostly POSIX compliant... Woo-Hoo!). My assumption is that most people modelling industrial/econometric data etc, or data imported from databases, don't want system references everywhe

Re: [Rd] Help useRs to use R's own Time/Date objects more efficiently

2020-04-05 Thread Abby Spurdle
> (1) Create a top-level help page with a title like "Date and Time > Classes" to give a brief but general overview. This would mean the > existing DateTimeClasses would need a new title. I wanted to modify my first suggestion. Perhaps a better idea would be to reference an external document givin

Re: [Rd] Testing before release (was: edit() doubles backslashes when keep.source=TRUE)

2020-05-15 Thread Abby Spurdle
This perhaps diverges from the intent of the thread, but... I wanted to say I'm extremely grateful to the people who go the through the bug reports. It's an extremely important job (in the long run, particularly), but perhaps not quite as "sexy"-sounding as other roles, and probably under-valued.

Re: [Rd] dbinom link

2020-05-18 Thread Abby Spurdle
This has come up before. Here's the last time: https://stat.ethz.ch/pipermail/r-devel/2019-March/077478.html I guess my answer to the following the question... Perhaps we should ask permission to nail the thing down somewhere on r-project.org? ...would be, to reproduce it somewhere. And

Re: [Rd] [External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"

2020-05-20 Thread Abby Spurdle
> An IDE could provide a more sophisticated interface, like a dialog > allowing separate choices for each conflict. But this is best left up > to the IDE or the user. An IDE (or other user interface) should not alter the behavior of R, especially the installing/loading/attaching of packages. Ther

Re: [Rd] [External] Feature Request: User Prompt + Message First Execution when "Managing Search Path Conflicts"

2020-05-20 Thread Abby Spurdle
On Thu, May 21, 2020 at 10:37 AM wrote: > Providing a way to more easily resolve situations that otherwise would > be errors is a reasonable thing for an IDE to do. In principle, yes. However, I note that the word "easily" could mean different things to different people. Certain IDE* (not naming

Re: [Rd] closing R graphics windows?

2020-05-27 Thread Abby Spurdle
> The only annoying thing for me is that 'plot()' is not interruptible, so > neither Ctrl-C nor the window manager can stop a plot once it has started - > but I submitted a bug to fix this a long time ago. If I use the keyboard to > close the window while a plot is being drawn, then it has to fi

Re: [Rd] [External] Re: use of the tcltk package crashes R 4.0.1 for Windows

2020-06-07 Thread Abby Spurdle
On Mon, Jun 8, 2020 at 4:09 AM Fox, John wrote: > Does it make sense to withdraw the Windows R 4.0.1 binary until the issue is > resolved? Yes, it does. All the release reversions should be removed. __ R-devel@r-project.org mailing list https://stat.e

Re: [Rd] [External] Re: use of the tcltk package crashes R 4.0.1 for Windows

2020-06-07 Thread Abby Spurdle
sorry, release "versions" On Mon, Jun 8, 2020 at 11:17 AM Abby Spurdle wrote: > > On Mon, Jun 8, 2020 at 4:09 AM Fox, John wrote: > > Does it make sense to withdraw the Windows R 4.0.1 binary until the issue > > is resolved? > > Yes, it does. > All the

Re: [Rd] Restrict package to load-only access - prevent attempts to attach it

2020-06-23 Thread Abby Spurdle
You could go one step down, print a note or a warning. Also, you could combine different approaches: Check for an (additional) environment variable. If set, print a note, if not set, generate a warning (or an error). That would prevent someone accidently attaching your package, and would discoura

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Abby Spurdle
It's possible to run R (or a c parent process) as a background process via a named pipe, and then write script files to the named pipe. However, the details depend on what shell you use. The last time I tried (which was a long time ago), I created a small c program to run R, read from the named pi

Re: [Rd] Speed-up/Cache loadNamespace()

2020-07-20 Thread Abby Spurdle
Thank you Serguei and Gabor. Great suggestions. > If your R scripts contain "stop()" or "q('yes')" or any other error, it > will end the Rscript process. Kind of watch-dog can be set for automatic > relaunching if needed. It should be possible to change the error handling behavior. >From within R

Re: [Rd] trivial typo in ?Matrix::sparse.model.matrix.Rd

2020-07-21 Thread Abby Spurdle
> "No documentation for ‘sparse.model.matrix’ in > specified packages and libraries", but it's there after > "library(Ecfun)". I find that interesting, because "Matrix" does not > appear in the Ecfun DESCRIPTION file. Not interesting. Note the imports and depends fields. (Of your own packages).

Re: [Rd] trivial typo in ?Matrix::sparse.model.matrix.Rd

2020-07-21 Thread Abby Spurdle
> By the way, Ecfun includes some 32 "suggests" and "imports". > "Matrix" is not one of them, but it must be called by something else > that's loaded by Ecfun, to get the result I got. Spencer, I find some of your comments/questions on R packages, extremely basic. (Sorry, if that sounds condescen

Re: [Rd] trivial typo in ?Matrix::sparse.model.matrix.Rd

2020-07-22 Thread Abby Spurdle
> The *first* package on the Ecfun imports list, is fda, which is *your* > package (technically, contributor), and it has a dependency on the > Matrix package. My post this morning might have come across the wrong way. It's good that you're interested in software for numerical linear algebra. (I o

Re: [Rd] Seeding non-R RNG with numbers from R's RNG stream

2020-07-30 Thread Abby Spurdle
> 3. In C++: Draw millions of times from a Categorical(p) distribution, where > "p" is recalculated after each draw I don't see the need here. It should be possible to generate all the random numbers , *in R*, and in *one line* of R code. Easy... Then standard inversion sampling, can be used to t

Re: [Rd] M[cbind()] <- assignment with Matrix object loses attributes

2020-08-22 Thread Abby Spurdle
Hi Ben, I had some problems reproducing this. As far as I can tell *all* indexed assignments drop attributes. (Maybe we have different versions). I'm not an expert on S4, but I'm unenthusiastic about mixing slot (S4) semantics with attribute (S3) semantics. And str() excludes attributes, but attr

Re: [Rd] M[cbind()] <- assignment with Matrix object loses attributes

2020-08-22 Thread Abby Spurdle
> Hmm, really? In `R Under development (unstable) (2020-08-14 > r79020)`, doing the indexed assignment with a regular matrix (as opposed > to a Matrix) appears to preserve attributes. I was referring to *Matrix* objects. Sorry, if that wasn't clear. __

Re: [Rd] more Matrix weirdness

2020-09-10 Thread Abby Spurdle
> > "These operators are also implicit S4 generics, but as > > primitives, S4 methods will be dispatched only on S4 > > objects ‘x’." > Yes, exactly, very well found, Georgi! I'm sorry Martin, but I don't understand your point here. I'm assuming that you want the (S3) matrix, x, to

Re: [Rd] Including full text of open source licenses in a package

2020-09-12 Thread Abby Spurdle
> > Including a copy of the license with the work is vital Hmmm... Agree. Just for context: CRAN has a history of being exceptionally useful and efficient. In general, I don't support suggestions to change their submission policies. __ R-devel@r-projec

Re: [Rd] more Matrix weirdness

2020-09-17 Thread Abby Spurdle
> There may be cases when changing the class of the left-hand side make sense > (such as one subclass of "Matrix" to another) but certainly not for the base > R vector classes. I'm not sure what you mean by "not for the base R vector classes". Historically, the simpler class (or mode) gets coerc

[Rd] Is it possible to simply the use of NULL slots (or at least improve the help files)?

2020-09-23 Thread Abby Spurdle
As far as I can tell, there's no trivial way to set arbitrary S4 slots to NULL. Most of the online examples I can find, use setClassUnion and are about 10 years old. Which, in my opinion, is defective. There's nothing "robust" about making something that should be trivially simple, really complica

Re: [Rd] Is it possible to simply the use of NULL slots (or at least improve the help files)?

2020-09-23 Thread Abby Spurdle
Sorry, the title should be "simplify", and the third paragraph should say "I can't". (Don't know how I missed these). __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Is it possible to simply the use of NULL slots (or at least improve the help files)?

2020-09-24 Thread Abby Spurdle
Hi Martin, Thankyou for your response. I suspect that we're not going to agree on the main point. Making it trivially simple (as say Java) to set slots to NULL. So, I'll move on to the other points here. ***Note that cited text uses excerpts only.*** > setClassUnion("character_OR_NULL", c("cha

[Rd] Could "MedicalImaging" Be Changed to "ImageProcessing"?

2020-10-27 Thread Abby Spurdle
Dear List, Regarding the task views: I was wondering if it would be possible to replace the MedicalImaging task view with an ImageProcessing task view? Alternatively, a separate task view could be created. However, I suspect that there would be considerable overlap. In my opinion, a single task vi

Re: [Rd] all.equal applied to function closures

2020-12-01 Thread Abby Spurdle
> Bill, I'm sure you've noticed that we did write all.equal.environment() > to work recursively... Actually, I had worked quite a bit at > that, too long ago to remember details, but the relevant svn log > entry is > > r66640

Re: [Rd] New pipe operator

2020-12-05 Thread Abby Spurdle
> This is a good addition I can't understand why so many people are calling this a "pipe". Pipes connect processes, via their I/O streams. Arguably, a more general interpretation would include sockets and files. https://en.wikipedia.org/wiki/Pipeline_(Unix) https://en.wikipedia.org/wiki/Named_pip

Re: [Rd] anonymous functions

2020-12-07 Thread Abby Spurdle
I mostly agree with your comments on anonymous functions. However, I think the main problem is cryptic-ness, rather than succinct-ness. The backslash is a relatively universal symbol within programming languages with C-like (ALGOL-like?) syntax. Where it denotes escape sequences within strings. U

Re: [Rd] anonymous functions

2020-12-07 Thread Abby Spurdle
Sorry, I should replace "cryptic-ness" from my last post, with "unnecessary cryptic-ness". Sometimes short symbolic expressions are necessary. P.S. Often, I wish I could write: f (x) = x^2. But that's replacement function syntax. On Tue, Dec 8, 2020 at 11:56 AM A

Re: [Rd] quantile() names

2020-12-14 Thread Abby Spurdle
The "value" is *not* 975. It's 975.025. The results that you're observing, are merely the byproduct of formatting. Maybe, you should try: quantile (x, .975, type=4) Which perhaps, using default options, produces the result you're expecting? On Tue, Dec 15, 2020 at 8:55 AM Merkle, Edgar C.

Re: [Rd] quantile() names

2020-12-16 Thread Abby Spurdle
CITED TEXT CONTAINS EXCERPTS ONLY > and now we read more replies on this topic without anyone looking at > the pure R source code which is pretty simple and easy. > Instead, people do experiments and take time to muse about their findings.. > Honestly, I'm disappointed: I've always thought that if

Re: [Rd] quantile() names

2020-12-16 Thread Abby Spurdle
poses of summary-style output. On Thu, Dec 17, 2020 at 11:48 AM Abby Spurdle wrote: > > CITED TEXT CONTAINS EXCERPTS ONLY > > > and now we read more replies on this topic without anyone looking at > > the pure R source code which is pretty simple and easy. > > Instead

Re: [Rd] Allowing S3 methods of rounding functions to take `...`

2021-01-28 Thread Abby Spurdle
That's a great suggestion Davis. While, we're on the topic... Could we have a "dots" argument in base::t, the transpose function? On Fri, Jan 29, 2021 at 4:48 AM Davis Vaughan wrote: > > I should also say that I would be willing to attempt a patch for this, if > others agree that this would be

Re: [Rd] Allowing S3 methods of rounding functions to take `...`

2021-01-28 Thread Abby Spurdle
is at its core. > > ~G > > On Thu, Jan 28, 2021 at 5:27 PM Abby Spurdle wrote: >> >> That's a great suggestion Davis. >> >> While, we're on the topic... >> Could we have a "dots" argument in base::t, the transpose function? >> >&

Re: [Rd] Potential improvements of ave?

2021-03-15 Thread Abby Spurdle
Hi Thomas, These are some great suggestions. But I can't help but feel there's a much bigger problem here. Intuitively, the ave function could (or should) sort the data. Then the indexing step becomes almost trivial, in terms of both time and space complexity. And the ave function is not the only

Re: [Rd] Faster sorting algorithm...

2021-03-15 Thread Abby Spurdle
In principle, I agree that faster ranking/sorting algorithms are important, and should be a priority. But I can't help but feel that the paper focuses on textbook-oriented problems. Given that in real world problems, there's almost always some form of prior knowledge: Wouldn't it be better, from a

Re: [Rd] Potential improvements of ave?

2021-03-16 Thread Abby Spurdle
e returns only x and not the entiere >> data.frame). >> >> Thanks, >> >> Thomas >> >> De : Abby Spurdle >> Envoyé : lundi 15 mars 2021 10:22 >> À : SOEIRO Thomas >> Cc : r-devel@r-project.org >&

[Rd] python-based examples within core-package help files

2021-04-05 Thread Abby Spurdle
I just noticed the following: (Within the help file for methods::is). supers <- extends("PythonInterface") superRelations <- extends("PythonInterface", fullInfo = TRUE) I was wondering: Could we please *not* have python-based examples within core help files. Furthermore, this example has no obvi

[Rd] Using R on kFreeBSD/Debian Hybrid

2021-07-24 Thread Abby Spurdle
Dear All, I'm considering installing a kFreeBSD/Debian hybrid operating system. i.e. A Debian OS but with a FreeBSD kernel. Which subsequently requires running (and compiling) R. And at some point, looking at the relationship between the R source and fortran. I thought I'd be prudent, and ask if