Re: [R] return output to console for copying as input

2013-06-25 Thread Enrico Schumann
On Tue, 25 Jun 2013, nevil amos writes: > I want to print a vector of strings to the console formatted as if it were > input > > X<-c("a","b","c") >> X > [1] "a" "b" "c" > > what I would like to get is > > the.function(X) >>"a","b","c" > > what is the function? > the.function <- function(x)

Re: [R] return output to console for copying as input

2013-06-25 Thread Rui Barradas
Hello, Maybe ?cat cat(X, "\n") (But it doesn't put the vector elements between quotes.) Hope this helps, Rui Barradas Em 25-06-2013 08:14, nevil amos escreveu: I want to print a vector of strings to the console formatted as if it were input X<-c("a","b","c") X [1] "a" "b" "c" what I wou

[R] return output to console for copying as input

2013-06-25 Thread nevil amos
I want to print a vector of strings to the console formatted as if it were input X<-c("a","b","c") > X [1] "a" "b" "c" what I would like to get is the.function(X) >"a","b","c" what is the function? cheers Nevil amos [[alternative HTML version deleted]] __