Skip to content
Prev 297721 / 398500 Next

Using Sub

Please study how escapes work. The representation you see in the source code is not the same as what is actually stored in memory.

As to your problems with the clipboard, I recommend writing scripts that do not interact with the clipboard directly. Violating this rule puts an error-prone human in the loop for repeating the script, and will eventually lead to irreproducible results.

That said, using the clipboard to create the script itself is fine. I usually just edit Windows paths in scripts to have forward slashes or double backslashes, and I use relative paths liberally. You can also play with file.choose() or readLines("clipboard") to get source-compatible paths.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
"Lopez, Dan" <lopez235 at llnl.gov> wrote: