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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:09:32+00:00 2026-05-28T08:09:32+00:00

There seems to be little documentation about this (unless I’m looking in the wrong

  • 0

There seems to be little documentation about this (unless I’m looking in the wrong place!). I’m running R on the command line on Unix:

R --no-save < myfile1.r >& out1.txt

If I have several R scripts running simultaneously, do I have to put savehistory("history1.Rhistory") etc at the end of each file, or can the name of the .Rhistory file be given in the command line arguments?

I also assume that all warnings are saved in the R workspace; however, only the last 50 ever seem to be visible (There were 50 or more warnings (use warnings() to see the first 50)) – is there a way to save all warnings?

  • 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-28T08:09:32+00:00Added an answer on May 28, 2026 at 8:09 am

    I also assume that all warnings are saved in the R workspace

    Nope. From ?warnings:

     It is undocumented where ‘last.warning’ is stored nor that it is
     visible, and this is subject to change.  Prior to R 2.4.0 it was
     stored in the workspace, but no longer.
    

    Since then it has undocumentedly been stored in the variable last.warning in baseenv(), but don’t rely on that to always be the case. (Also note that that variable doesn’t exist if there hasn’t been a warning yet.) You are supposed to access the last warnings with warnings() instead.

    is there a way to save all warnings?

    Not obviously. The theory is that 50 warnings is plenty to worry about at once. Read the first 50, and fix the problems or wrap the offending code in suppressWarnings if you think that the warning is erroneous, then deal with the next set.

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

Sidebar

Related Questions

There's precious little documentation about the declare-styleable tag by which we can declare custom
I've been searching everywhere and there seems to be very little about Zen Cart...
My question seems easy but is little more theoretical than it looks. There are
There seems to be a lot of heated discussion on the net about the
There seems to be a similar question to this on here but with the
While there is plenty of documentation about XML document structure, there are very few
There seems to be no good way to localize a WPF application. MSDN seems
There seems to be two major conventions for organizing project files and then many
There seems to be three common approaches for mapping an application end user to
There seems to be multiple extremes when supporting embeddable Java HTTP servers. I have

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.