Re: [Rd] should base R have a piping operator ?

2019-10-06 Thread Ant F
x <- 5 > > > > > > Though thats a much more minor transformation. > > > > All of that said, I believe Jim Hester (cc'ed) suggested something along > > these lines at the RSummit a couple of years ago, and thus far R-core has > > not shown much appetite fo

Re: [Rd] should base R have a piping operator ?

2019-10-05 Thread Ant F
Yes but this exageration precisely misses the point. Concerning your examples: * I love fread but I think it makes a lot of subjective choices that are best associated with a package. I think it changed a lot with time and can still change, and we have great developers willing to maintain it and

Re: [Rd] should base R have a piping operator ?

2019-10-05 Thread Ant F
z.ch/R-manual/R-devel/library/base/html/funprog.html > [2] https://stat.ethz.ch/R-manual/R-devel/library/base/html/Recall.html > [3] https://stackoverflow.com/a/52465956/8245406 > > Hope this helps, > > Rui Barradas > > Às 16:48 de 05/10/19, Ant F escreveu: > > Hi

Re: [Rd] should base R have a piping operator ?

2019-10-05 Thread Ant F
or > some reason we chickened out and didn't spend time on it in the dot pipe > paper ( https://journal.r-project.org/archive/2018/RJ-2018-042/index.html > ). > > For documentation Bizarro pipe has the advantage that one can work out how > it works from the application itself, w

[Rd] should base R have a piping operator ?

2019-10-05 Thread Ant F
Dear R-devel, The most popular piping operator sits in the package `magrittr` and is used by a huge amount of users, and imported /reexported by more and more packages too. Many workflows don't even make much sense without pipes nowadays, so the examples in the doc will use pipes, as do the READM

[Rd] rbind returns a zero row data frame when binding zero column data frames

2019-09-02 Thread Ant F
Dear all, `rbind()` returns a zero row data frame when binding zero column data frames, see example below: ``` r # a data frame with 1 row and 0 column x <- data.frame(row.names=1) x #> data frame with 0 columns and 1 row rbind(x,x) #> data frame with 0 columns and 0 rows ``` I would have expect

[Rd] ?Syntax wrong about `?`'s precedence ?

2019-08-29 Thread Ant F
Dear all, `?Syntax` documents that `?` has the lowest precedence, right under `=`. Indeed it reads: *The following unary and binary operators are defined. They are listed in precedence groups, from highest to lowest. * and ends the list with *<- <<-* *assignment (right to left)* *=* *assignme

[Rd] Fwd: Document colon equals `:=` operator ?

2019-08-24 Thread Ant F
Dear all, There was some discussion lately on twitter ( https://twitter.com/geospacedman/status/1164208293377691648 ) about the status of the colon equal operator. I'm sure it has been discussed in the past but I couldn't find anything, I'll start by clarifying all i can by myself to have strong r

Re: [Rd] install packages with missing pkg argument

2019-07-29 Thread Ant F
Indeed it's a RStudio issue as diagnosed by Hugh, and is still an issue with the latest version. Le lun. 29 juil. 2019 à 15:02, Duncan Murdoch a écrit : > On 29/07/2019 7:39 a.m., Ant F wrote: > > Dear all, > > > > The help for `?install.packages` decribes, in the `pkg

Re: [Rd] install packages with missing pkg argument

2019-07-29 Thread Ant F
écrit : > Are you running that command in RStudio? And do you get the documented > results when you run utils::install.packages() rather than just > install.packages() > > If yes, then the function is likely working as advertised and you've > mixed up the R and RStudio version

[Rd] install packages with missing pkg argument

2019-07-29 Thread Ant F
Dear all, The help for `?install.packages` decribes, in the `pkg` argument description : > If this is missing, a listbox of available packages is presented where possible in an interactive R session. In fact running it with a missing argument triggers an error : install.packages() > Error in in

[Rd] head with non integer n returns confusing output

2019-06-21 Thread Ant F
Dear all, `head()` returns a problematic output when a character is fed to its `n` parameter. doubles and logicals are converted to integer as if `as.integer` was used, which I think is intuitive enough : ``` head(1:10, 4.1) # [1] 1 2 3 4 head(1:10, 4.9) # [1] 1 2 3 4 head(1:10, TRUE) # 1 hea

[Rd] bug report: inaccurate error message for stats::chisq.test

2018-08-22 Thread Ant F
Hi, `stats::chisq.test` checks that x and y each have at least 2 levels AFTER filtering on complete cases. It makes sense but the error message is misleading : “'x' and 'y' must have at least 2 levels” Here’s how to reproduce the issue : x <- structure(c(1L, 1L, 1L, 2L, 1L, 2L), .Label = c(