On 1 June 2009 at 13:06, Sebastian P. Luque wrote: | Hi, | | This code used to work well until a few months ago (I haven't used it | since), but now it's giving this: | | ---<--------------------cut here---------------start------------------->--- | $ cat <<EOF | r - | locs <- read.csv(list.files(pattern="ds_.+_.+\\.csv"), | colClasses=c(rep("character", 2), "numeric", "character", | rep("numeric", 2), rep("character", 4), rep("numeric", 3), | rep("logical", 4))) | EOF | > > > > > Loading required package: methods | littler: Incomplete Line! Need more code! | ---<--------------------cut here---------------end--------------------->--- | | It seems like a quoting issue but I can't pinpoint it. Thanks.
Maybe it is something else. Did you change shells? Reading from '-' still works for me when needed. Here is a quick throw-away example using awk to pick file size from a directory listing and letting r summarize it [1] e...@ron:~$ ls -l /etc | awk '/^-/ {print $5}' | r -e'print(summary(as.numeric(readLines())))' - Min. 1st Qu. Median Mean 3rd Qu. Max. 0 272 843 7980 2540 219000 e...@ron:~$ Dirk [1] Not that great an example otherwise... -- Three out of two people have difficulties with fractions. _______________________________________________ R-SIG-Debian mailing list R-SIG-Debian@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-debian