How to make this a string in R? "@:#[b19]$r,$a" I'm using this in the system() function as a command line argument. This string is to be passed to paste0 to specify the binary name and other flags needed for the execution.
            Asked
            
        
        
            Active
            
        
            Viewed 12 times
        
    0
            
            
        - 
                    Double up the slashes: "@:#[b19]\\$r,\\$a" – MrFlick Apr 06 '21 at 19:15
- 
                    @MrFlick But there are two slashes then. Are you saying this is not going to affect the command line execution? – monotonic Apr 06 '21 at 19:16
- 
                    1There aren't two slashes then. That's just how you escape a single slash in a string literal. See the duplicate for more info. With R version 4 and later you can use a string like `r"(@:#[b19]\$r,\$a)"` – MrFlick Apr 06 '21 at 19:17
