On Tue, Apr 9, 2013 at 3:06 AM, Daniel Caro <dca...@gmail.com> wrote: > Hello all, > > Sorry if this question has been answered in the past, but I could not find > an answer. > > I am trying to print quotes within a cat output. The arguments are: > > file= "Data labels" > directory= "/home/mylaptop/" > > The function returns: > cat("The file", file, "is located in directory", directory, sep=" ")
cat("The file\"", file, "\"is located in directory\"", directory, "\", sep=" ") or use single quotes cat('The file"', file, '"is located in directory"', directory, '"', sep=" ") Hadley -- Chief Scientist, RStudio http://had.co.nz/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.