[R-SIG-Mac] Option '--no-save' seems to be ignored although in .bash_profile and other files
Duncan Murdoch
murdoch.duncan at gmail.com
Wed Oct 7 17:16:09 CEST 2015
On 07/10/2015 11:04 AM, Marius Hofert wrote:
> Hi,
>
> I would like to start R by default with '--no-restore-history
> --no-save' to avoid that .RData files are written. I put "alias R=R
> --no-restore-history --no-save" in virtually all relevant system/dot
> files, like ~/.bash_profile and ~/.profile (even ~/.bashrc), but
> still, .RData files are written (yes, I did fresh logins...)... When I
> define the alias in the shell before executing R, it works, so the
> question seems to be *where* (i.e., in which file) to define the
> alias? This seems to be a 'Mac/terminal question' not related to R,
> but I have working aliases in ~/.bashrc, so why I isn't R called with
> the two optional arguments? Has anyone experienced something similar?
> I even found posts were this procedure is recommended (with the alias
> defined in ~/.bash_profile). Hmmm...
You don't describe how you are starting R. Assuming you are doing it by
running the command "R" from within bash, what does "alias R" show you?
Duncan Murdoch
More information about the R-SIG-Mac
mailing list