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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:51:44+00:00 2026-05-21T06:51:44+00:00

Is it possible to recover an R session if R needed to close due

  • 0

Is it possible to recover an R session if R needed to close due to an error? Is there a temp directory where sessions/data sits before its saved to a file?

What I’d really need is the history of input commands.

(running R version 2.12.1 on WinXP)


Based on answer to my question below, I still have the following question:

Where is R saving .Rhistory to?

I am not able to find this file, despite restarting a new R session and still having access to commands from a previous session. R reference page on SAVEHISTORY did not resolve this for me. It seems that R is storing this data in some temp file/folder that I don’t have access to. When I run the command tempdir(), I get a location of the temp directory, but not a single file is being stored there, whether during an active session, or after it closes.

  • 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-21T06:51:45+00:00Added an answer on May 21, 2026 at 6:51 am

    Look at the working directory where you were working when R crashed and look for a file named “.Rhistory” I don’t know if every command will be there. But I’m sure that at least the last 50 are there.

    HTH

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

Sidebar

Related Questions

Is it possible to recover memory lost from w3wp.exe? I thought a session.abandon() should
is it possible to recover from vector out of reach error in C++? Like
Is it possible to recover deleted data from FAT32 using java ? Thank you
Is it possible to recover from a network partition in an mnesia cluster without
I'm wondering if it's possible to recover a RSA public key that I have
Possible Duplicate: Is it possible to decrypt md5 hashes? I accidentally encrypted some data
I have created a function in F# to recover historical data from Yahoo (the
The above error message comes up just before SQL Server marks the database as
Is it possible to persist a class in session that I define in VBScript
Is there any way to persist a java object, thrift serialized, and recover it

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.