[R] Open a file which name contains a tilde

Frank Schwidom @chw|dom @end|ng |rom gmx@net
Wed Jun 5 18:07:15 CEST 2019


As I can see via path.expand a filename which contains a tilde anywhere gets automatically crippled.

+> path.expand("a ~ b")
[1] "a /home/user b"

+> path.expand("a ~ b ~")
[1] "a /home/user b /home/user"

I want to open a file regardless whether its name contains any character unless 0.

The unix filesystem allow the creation of such files, it sould be possible to open these.

How can I switch off any file crippling activity?

Kind regards,

More information about the R-help mailing list