[Rd] Bug when trying to save a character vector with an embedded / (PR#1115)

a296180@mica.fmr.com a296180@mica.fmr.com
Thu, 4 Oct 2001 13:28:07 +0200 (MET DST)


Here is an example involving "VIA\B".

> version
         _                   
platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
status                       
major    1                   
minor    3.0                 
year     2001                
month    06                  
day      22                  
language R                   
> ls()
character(0)
> test <- "VIA\\B"	# I proceed the \ with another to escape it.
> cat(test, "\n")
VIA\B			# This is how the string should look.
> save(test, ascii = TRUE, file = "here")
> remove(list = ls())
> ls()
character(0)
> load("here")
> ls()
[1] "test"
> cat(test, "\n")
VIAB		# This is not how the string should look! Where did the \ go?
 
> unlink("here")


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._