Hello Thibault Charles, > I have the following text : > text <- INFILTRATION INF_BASE > > AIRCHANGE=1 becomes: text <- "INFILTRATION INF_BASE\nAIRCHANGE=1"
> original <- "INFILTRATION INF_BASE \n AIRCHANGE=1" There are spaces around "\n". That's why text != original Try original <- "INFILTRATION INF_BASE *\n *AIRCHANGE=1" Bye, Sebastian ______________________________________________ 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.