[Rd] SUGGESTION: Settings to disable forked processing in R, e.g. parallel::mclapply()

2019-04-11 Thread Henrik Bengtsson
ISSUE: Using *forks* for parallel processing in R is not always safe. The `parallel::mclapply()` function uses forked processes to parallelize. One example where it has been confirmed that forked processing causes problems is when running R via RStudio. It is recommended to use PSOCK clusters (`p

Re: [Rd] Parsing code with newlines

2019-04-11 Thread peter dalgaard
”\r" is CR not LF. On systems that use CRLF as newline, the combination should be "\n" at the C (or R) level. However, I suppose there is no particular reason not to treat CR as whitespace, as does happen with FF and HT. -pd > On 11 Apr 2019, at 01:59 , Mikhail Titov wrote: > > The barely m

Re: [Rd] R 3.5.3 and 3.6.0 alpha Windows bug: UTF-8 characters in code are simplified to wrong ones

2019-04-11 Thread Tomáš Bořil
I do not blame anybody and I do have a huge respect to all authors of R. Actually, I like R very much and I would like to thank to everyone who contributes to it. I use R regularly in my work (moved from Java, C# and Matlab), I have created a package rPraat for phonetic analyses and I think R is a

Re: [Rd] R 3.5.3 and 3.6.0 alpha Windows bug: UTF-8 characters in code are simplified to wrong ones

2019-04-11 Thread Tomas Kalibera
On 4/11/19 9:10 AM, Tomáš Bořil wrote: Or, if this cannot be done easily, please, disable the "utf-8" value in source(..., ) function on Windows R. source(..., encoding = "utf-8") -> error: "utf-8" does not work right on Windows. -> (or, at least) warning: "utf-8" is handled by "best fit" on Wind

Re: [Rd] R 3.5.3 and 3.6.0 alpha Windows bug: UTF-8 characters in code are simplified to wrong ones

2019-04-11 Thread Tomáš Bořil
Or, if this cannot be done easily, please, disable the "utf-8" value in source(..., ) function on Windows R. source(..., encoding = "utf-8") -> error: "utf-8" does not work right on Windows. -> (or, at least) warning: "utf-8" is handled by "best fit" on Windows and some characters in string literal