Re: [Rd] Error in rbind(info, getNamespaceInfo(env, "S3methods"))

2019-02-18 Thread Matt Dowle
Thanks, Duncan. I took the approach you suggested and eventually found it was due to R.matlab (staRdom imports R.matlab). > require(R.matlab) Loading required package: R.matlab Error: package or namespace load failed for ‘R.matlab’ in rbind(info, getNamespaceInfo(env, "S3methods")): number of col

Re: [Rd] Error in rbind(info, getNamespaceInfo(env, "S3methods"))

2019-02-18 Thread Duncan Murdoch
On 18/02/2019 4:08 p.m., Matt Dowle wrote: Dear all, I'm experiencing an unusual installation error for one package. Could anyone suggest how I can best investigate this from here please? I'm sorry this isn't very much to go on. Hopefully someone can point me in the right direction. When pack

[Rd] Error in rbind(info, getNamespaceInfo(env, "S3methods"))

2019-02-18 Thread Matt Dowle
Dear all, I'm experiencing an unusual installation error for one package. Could anyone suggest how I can best investigate this from here please? I'm sorry this isn't very much to go on. Hopefully someone can point me in the right direction. The problem seems to be my library. It is large (3,418

Re: [Rd] Extract.data.frame.Rd about $.data.frame

2019-02-18 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Mon, 18 Feb 2019 16:37:01 + writes: > The statement in R devel: There is no \code{data.frame} > method for \code{$}, so \code{x$name} uses the default > method which treats \code{x} as a list (with no partial > mat

Re: [Rd] Encoding issues

2019-02-18 Thread Gábor Csárdi
On Mon, Feb 18, 2019 at 4:42 PM Iñaki Ucar wrote: > > On Mon, 18 Feb 2019 at 17:27, Gábor Csárdi wrote: > > > > From "Writing R Extensions": > > > > "Only ASCII characters (and the control characters tab, formfeed, LF > > and CR) should be used in code files." > > > > So I am afraid you cannot us

Re: [Rd] Encoding issues

2019-02-18 Thread Tomas Kalibera
On 2/18/19 4:36 PM, Iñaki Ucar wrote: > Hi, > > We found a (to our eyes) strange behaviour that might be a bug. First > a little bit of context. The 'units' package allows us to set the unit > using both SE or NSE. E.g., these both work in the same way: > > units::set_units(1:10, "μm") > #> Units:

Re: [Rd] Encoding issues

2019-02-18 Thread Iñaki Ucar
On Mon, 18 Feb 2019 at 17:27, Gábor Csárdi wrote: > > From "Writing R Extensions": > > "Only ASCII characters (and the control characters tab, formfeed, LF > and CR) should be used in code files." > > So I am afraid you cannot use μm. Thanks, Gábor, I missed that bit. Then, is an .Rd file conside

Re: [Rd] Extract.data.frame.Rd about $.data.frame

2019-02-18 Thread Suharto Anggono Suharto Anggono via R-devel
The statement in R devel: There is no \code{data.frame} method for \code{$}, so \code{x$name} uses the default method which treats \code{x} as a list (with no partial matching of column names). The replacement method (for \code{$}) checks \code{value} for the correct number of rows, and re

Re: [Rd] Encoding issues

2019-02-18 Thread Gábor Csárdi
>From "Writing R Extensions": "Only ASCII characters (and the control characters tab, formfeed, LF and CR) should be used in code files." So I am afraid you cannot use μm. Gabor On Mon, Feb 18, 2019 at 3:36 PM Iñaki Ucar wrote: > > Hi, > > We found a (to our eyes) strange behaviour that might

Re: [Rd] code for sum function

2019-02-18 Thread Tomas Kalibera
See do_summary() in summary.c, rsum() for doubles. R uses long double type as accumulator on systems where available. Best, Tomas On 2/14/19 2:08 PM, Rampal Etienne wrote: Hello, I am trying to write FORTRAN code to do the same as some R code I have. I get (small) differences when using the

[Rd] Encoding issues

2019-02-18 Thread Iñaki Ucar
Hi, We found a (to our eyes) strange behaviour that might be a bug. First a little bit of context. The 'units' package allows us to set the unit using both SE or NSE. E.g., these both work in the same way: units::set_units(1:10, "μm") #> Units: [μm] #> [1] 1 2 3 4 5 6 7 8 9 10 units::se

[Rd] Proposed speedup of spec.pgram from spectrum.R

2019-02-18 Thread Jonathan Kennel
Hello, I propose two small changes to spec.pgram to get modest speedup when dealing with input (x) having multiple columns. With plot = FALSE, I commonly see ~10-20% speedup, for a two column input matrix and the speedup increases for more columns with a maximum close to 45%. In the function as

[Rd] code for sum function

2019-02-18 Thread Rampal Etienne
Hello, I am trying to write FORTRAN code to do the same as some R code I have. I get (small) differences when using the sum function in R. I know there are numerical routines to improve precision, but I have not been able to figure out what algorithm R is using. Does anyone know this? Or where

Re: [Rd] Trying to compile R 3.5.2 - 32 bit R - on Windows 10 64 bit - with ICU support

2019-02-18 Thread Tomas Kalibera
On 2/16/19 11:12 AM, Andre Mikulec wrote: Hi, I am trying to compile R with ICU support. I am following https://cran.r-project.org/doc/manuals/R-admin.html#Building-from-source I have downloaded and extracted https://www.stats.ox.ac.uk/pub/Rtools/goodies/ICU_531.zip to W:\R-3.5._\App\R-Porta