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 5994951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T23:53:29+00:00 2026-05-22T23:53:29+00:00

When attempting to run R, I get this error: Fatal error: cannot mkdir R_TempDir

  • 0

When attempting to run R, I get this error:

Fatal error: cannot mkdir R_TempDir

I found two possible fixes for this problem by googling around. The first was to ensure my tmp directory didn’t contain a load of subdirectories – it doesn’t and it’s virtually empty. The second fix was to ensure that TMP, TMPDIR, and R_USER in my environment weren’t set to non-existent paths – I didn’t even have these set. Therefore, I created a tmp directory in my home directory and added it’s path to TMP in my environment. I was able to run R once and then I got the fatal error again. Nothing was in the TMP directory that I set in my environment. Does anyone know what else I can try? Thanks.

  • 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-22T23:53:30+00:00Added an answer on May 22, 2026 at 11:53 pm

    Your default temporary directory appears to have the wrong permissions. Here I have

    $ ls -ld /tmp
    drwxrwxrwt 22 root root 4096 2011-06-10 09:17 /tmp
    

    The key part is ‘everybody’ can read or write. You need that too. It certainly can contain subdirectories.

    Are you running something like AppArmor or SE Linux?

    Edit 2011-07-21: As someone just deemed it necessary to downvote this answer — help(tempfile) is very clear on what values tmpdir (the default directory for temporary files or directories) tries:

    By default, 'tmpdir' will be the directory given by 'tempdir()'. This
    will be a subdirectory of the temporary directory found by the
    following rule. The environment variables 'TMPDIR', 'TMP' and 'TEMP'
    are checked in turn and the first found which points to a writable
    directory is used: if none succeeds '/tmp' is used.

    So my money is on checking those three environment variables. But AppArmor and SELinux have shown to be an issue too on some distributions.

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

Sidebar

Related Questions

While attempting to link with QT 4.5 release, I run into this error message
When attempting to compile my C# project, I get the following error: 'C:\Documents and
Say you have a large PHP project and suddenly, when attempting to run it,
I'm attempting to eliminate leading any leading zeroes in my date when I run
Scenario: Attempting to import many (>100), large(>1M recs) flat-files (csv). Problem: Many records are
I've encountered a strange error when attempting to update a SharePoint 2010 list that
I'm attempting to design an achievement system in Ruby on Rails and have run
I am attempting to run a py2exe'd program (package.py) that includes pysvn. It is
I am attempting to run a program that will find a new value for
I run my own server at home. I am attempting to do a mod_rewrite

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.