Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3596312
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:58:18+00:00 2026-05-18T19:58:18+00:00

To create a path to a file in a platform independent way, you are

  • 0

To create a path to a file in a platform independent way, you are supposed to use file.path. It bugs me a little that, e.g.,

file.path("some dir", "some other dir", "my file")

is more characters and less readable than

"some dir/some other dir/my file"

I want to know if there are any platforms for which the second version will fail. Certainly the path separator (.Platform$file.sep) is / for Linux, Mac and Windows.

Are there any platforms (that R runs on) which have a different value of .Platform$file.sep?

EDIT:
The the only current platforms from the Wikipedia list (thanks darioo) that don’t use / are OpenVMS, Stratus VOS and Symbian. The FAQ on R states that R is developed for

the Unix-like, Windows and Mac
families of operating systems

So there is no official support for any of these platforms. I don’t have a good feel for whether or not there’s an army of hackers running R on their Nokia phones. Can you guesstimate a probability that anyone uses R on these systems?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T19:58:18+00:00Added an answer on May 18, 2026 at 7:58 pm

    Here is a list of operating systems with their file separators.

    Compare it with the list of OS’s on which R runs and you’ll have a reference list.

    Although, you’ll probably stumble upon / in 99% of situations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To create a path to a file in a platform independent way, you are
DirectoryInfo dir=new DirectoryInfo(path); if (!dir.Exists) { Directory.CreateDirectory(path); File.Create(path + \\file.xml); StreamWriter sw =new StreamWriter(path
I need to create a batch file that changes path to a particular folder
I'd like to create a batch file that uses (e.g. prints) its full path:
I am attempting to add a username to file path so I can create
I am trying to create a record containing the path to a file. The
I'm trying to create a Makefile that uses information from the path to create
I have to create a regular expression for some path conversion. Example for path
I would like to create a button control that has a Path element as
We create the vcproj file with the makefileproj keyword so we can use our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.