Re: [Rd] duplicated.data.frame() is broken on data frames containing \r

2013-07-29 Thread Hervé Pagès
OK it's actually documented: The data frame method works by pasting together a character representation of the rows separated by ‘\r’, so may be imperfect if the data frame has characters with embedded carriage returns or columns which do not reliably map to characters. But w

[Rd] duplicated.data.frame() is broken on data frames containing \r

2013-07-29 Thread Hervé Pagès
Hi, The trick used by duplicated.data.frame() is to transform the supplied data.frame into a character vector by pasting together the columns using "\r" as separator. But no precautions are taken to deal with "\r" in the supplied data.frame. As a consequence it's easy to imagine situations where

Re: [Rd] Shell Function not on Linux

2013-07-29 Thread Dario Strbenac
I did. Nowhere does it explicitly say it is only for Windows, and one of the arguments also mentions BASH in it, so that made me assume it works for Linux. From: r-devel-boun...@r-project.org [r-devel-boun...@r-project.org] on behalf of Prof Brian Ripley

Re: [Rd] Shell Function not on Linux

2013-07-29 Thread Prof Brian Ripley
You should read the documentation. shell() is specific to Windows, as on all other platforms system() runs a shell. (This is an OS-level difference: Windows is not POSIX compliant.) See also the manuals, e.g. http://cran.r-project.org/doc/manuals/r-release/R-exts.html#Operating-system-access

[Rd] Shell Function not on Linux

2013-07-29 Thread Dario Strbenac
Hello, Using R for Windows, I am able to use the shell function : R version 3.0.1 (2013-05-16) -- "Good Sport" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 (64-bit) ... ... > shell() Error in shel