Displaying 1 result from an estimated 1 matches for "catfail".
Did you mean:
cantfail
2010 Feb 11
2
Suprising behavior of paste or cat?
...ask))
task <- task[ord]
taskout <- paste(task,collapse=",")
write(file="please.txt",taskout)
lastcomma <- function(x) {return(paste(x,",",collapse="",sep=""))}
res <- lastcomma(taskout)
write(file="fail.txt",res)
cat(file="catfail.txt",res)
Any ideas as to how to avoid this problem would be appriciated as well
as suggestions as to whether this is expected behavior, or whether it
ought to be reported as a bug.
Best,
Russell Pierce