I have a path:

path = "/nfs/users/nfs_n/ns9/
Phenotype Analysis/Results/Run_AmplRatio_neg
BinaryAll trained without akapn+tnik.csv"

I wish to replace the spaces with "\ " so that it can be read by a system
call to unix.

Using gsub I try:

> gsub(" ","\\ ",path)
[1] "/nfs/users/nfs_n/ns9/Phenotype Analysis/Results/Run_AmplRatio_neg
BinaryAll trained without akapn+tnik.csv"

Various variations on this result in either adding no backslashes, or two at
once. How do I just get one backslash inserted?

Thanks

	[[alternative HTML version deleted]]

