How can I include the escape character \
in a string, followed by *
?
My incorrect string assignment:
commandLine.rmTags = 'tag --remove \* test_file.png'
results in:
Error: '\*' is an unrecognized escape in character string starting "'tag --remove \*"
Ultimately, the reason I need to do this is to call system()
from R, for which the argument is the string above. I will be using it like this:
commandLine.rmTags = 'tag --remove \* test_file.png'
system(commandLine.rmTags)
Note: if you are curious, I am using jdberry's very cool Tag Terminal application.