5

In R on Windows, tempdir() returns a path that contains short names for non 8dot3 directory names.

How do I expand those to long names?

An answer that uses pure R code is favorable, but one that uses well-known shell commands used via system() is fine as a backup.

Paul
  • 1,325
  • 2
  • 19
  • 41
Jeff
  • 1,426
  • 8
  • 19

1 Answers1

7

The normalizePath function will turn short names into long names:

This converts relative paths to absolute paths, and converts short names to long names.

Mark Rushakoff
  • 249,864
  • 45
  • 407
  • 398
  • Excellent! I was trying file.path, path.expand, and I even found tools::file_path_as_absolute, but none worked. Thanks! – Jeff Sep 15 '09 at 17:09