Re: [Rd] what do you think about write.table(... qmethod = "excel")?

2017-09-19 Thread Duncan Murdoch
On 19/09/2017 4:10 PM, Ista Zahn wrote: On Tue, Sep 19, 2017 at 1:04 PM, Paul Johnson wrote: Last week one of our clients reported trouble with a csv file I generated with write.table. He said that columns with quotes for character variables were rejected by their data importer, which was revi

Re: [Rd] what do you think about write.table(... qmethod = "excel")?

2017-09-19 Thread Ista Zahn
On Tue, Sep 19, 2017 at 1:04 PM, Paul Johnson wrote: > Last week one of our clients reported trouble with a csv file I > generated with write.table. He said that columns with quotes for > character variables were rejected by their data importer, which was > revised to match the way Microsoft Exce

Re: [Rd] what do you think about write.table(... qmethod = "excel")?

2017-09-19 Thread Dirk Eddelbuettel
On 19 September 2017 at 12:04, Paul Johnson wrote: | They showed me a CSV file from Excel that looked like this | | x1,x2,x3,x4 5 6 | fred,barney,betty,x | bambam,"fred,wilma",pebbles,y | | Note how the quotes only happen on row 2 column 2. I was surprised it | did that, but now I have some pres

Re: [Rd] issue with promises for time parameter of rep()

2017-09-19 Thread luke-tierney
Thanks. Fixed in R-devel and R-patched. This now gives f <- function(n) { print(ls.str()) rep("hello", times = n) } f(n) ## n : ## Error in f(n) : object 'n' not found ## In addition: Warning message: ## In f(n) : restarting interrupted promise evaluation Best, luke On Mon, 18 Sep 201

[Rd] what do you think about write.table(... qmethod = "excel")?

2017-09-19 Thread Paul Johnson
Last week one of our clients reported trouble with a csv file I generated with write.table. He said that columns with quotes for character variables were rejected by their data importer, which was revised to match the way Microsoft Excel uses quotation marks in character variables. I explained to

Re: [Rd] R and Visual Studio

2017-09-19 Thread Dirk Eddelbuettel
On 19 September 2017 at 07:07, Dirk Eddelbuettel wrote: | [ I believe there is an exception if you're a true compiler expert and really | know what you're doing. No such person is part of the wider R community as | far as I know. ] This was missing an important qualifier for "with particular know

Re: [Rd] R and Visual Studio

2017-09-19 Thread Dirk Eddelbuettel
On 19 September 2017 at 12:53, lille stor wrote: | I am trying to build R using Visual Studio 2010 but without success. My question is if it possible build R with this compiler anyway? In general, no. [ I believe there is an exception if you're a true compiler expert and really know what you're

[Rd] R and Visual Studio

2017-09-19 Thread lille stor
Hi,   I am trying to build R using Visual Studio 2010 but without success. My question is if it possible build R with this compiler anyway?   If not, could someone please tell how to link one's C code against both the static and shared libraries of R for Windows (that comes from the official web

Re: [Rd] issue with promises for time parameter of rep()

2017-09-19 Thread Lionel Henry
Here is the same issue with closures: g <- function(n) { missing(n) } f <- function(n, force) { if (force) { tryCatch(n, error = function(...) NULL) } g(n) } g(`_x`) #> [1] FALSE f(`_x`, force = FALSE) #> [1] FALSE f(`_x`, forc

[Rd] issue with promises for time parameter of rep()

2017-09-19 Thread Homer White
Greetings, The following is based on a question I raised on Stackoverflow: https://stackoverflow.com/questions/46280120/calling-printls-str-in-function-affect-behavior-of-rep/46283979#46283979 Start a new R session with an empty Global Env. Then define: f <- function(n) { print(ls.str()) r

Re: [Rd] NEWS item about PR#17284

2017-09-19 Thread Martin Maechler
> Martin Maechler > on Tue, 19 Sep 2017 09:18:46 +0200 writes: > Suharto Anggono Suharto Anggono via R-devel > on Mon, 18 Sep 2017 16:11:53 + writes: >> Previous mentions: >> - https://stat.ethz.ch/pipermail/r-devel/2017-July/074723.html >> - https://stat

Re: [Rd] NEWS item about PR#17284

2017-09-19 Thread Martin Maechler
> Suharto Anggono Suharto Anggono via R-devel > on Mon, 18 Sep 2017 16:11:53 + writes: > Previous mentions: > - https://stat.ethz.ch/pipermail/r-devel/2017-July/074723.html > - https://stat.ethz.ch/pipermail/r-devel/2017-August/074737.html > The NEWS item correspo