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

  • SEARCH
  • Home
  • 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 6705285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:23:11+00:00 2026-05-26T07:23:11+00:00

[originally posted at RStudio’s support site , but it looks like it’s a core

  • 0

[originally posted at RStudio’s support site, but it looks like it’s a core R issue, not RStudio.]

I’m trying to figure out how to create a filesystem link that will be traversed within R. I’ve tried both Cygwin symlinks & Windows links to no avail. I’m doing this because I’ve got a big directory full of large data files that I’d like to avoid copying to my workspace.

To create the symlink, I did ln -s ../otherdir/data data in Cygwin. If I then do ls data/, I can see the data files through the link.

To create the Windows link, I did a “copy” in Windows Explorer on the otherdir/data/ directory, then did “paste shortcut” in my workspace and changed the name to data.lnk. If I double click that link, I’m taken correctly through the link.

So both links are correctly targeted.

Now in RStudio, I get the following output, indicating that neither link can be traversed:

> dir()
[1] "data" "data.lnk" "docs" "src" "tmp"
> dir('data')
character(0)
> dir('data.lnk')
character(0)
> dir('data/')
character(0)
> dir('data.lnk/')
character(0)

Is there some variation on this that will work? I’m using Windows 7 and R 2.13.1.

  • 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-26T07:23:11+00:00Added an answer on May 26, 2026 at 7:23 am

    A Windows shortcut isn’t really a filesystem link. It’s a regular file, that Explorer knows to treat differently. To other programs, it’s just a file.

    According to Wikipedia, a Cygwin symlink is implemented as a shortcut, rather than a true symbolic link, so it will have the same problem.

    Have you tried using the mklink command to create the link, as described here?

    Disclaimer: I haven’t tried it myself.

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

Sidebar

Related Questions

Originally posted on the Grails mailing list... I'm not generally a database guy but
[originally posted on Symfony forum but no (proper) answer has been given yet]. Has
This is originally posted as an answer to c++ macros with memory? But somehow
I originally posted this question over at the Zend Forums but figured it would
Note: I originally posted this on ServerFault, but I haven't gotten any responses at
I originally posted this queston on coderanch, but I didn't get responses, so I
I have a string as follows: '[quote]Originally Posted by <strong>first last</strong><br/>zzzzzzzzz[/quote]adaaaaaaaaaaaaaa' I would like
Originally posted on Server Fault , where it was suggested this question might better
Note this question was originally posted in 2009, before C++11 was ratified and before
Update I don't think I was clear enough when I originally posted this quesion.

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.