Hi
May I know where is the location of commands we used in R in the history? Regards, Mahmood [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
I think it may depend on your operating system. In my case, Ubuntu 20.10,
it is a hidden file at /home level. On Sun, 28 Feb 2021 at 08:40, Mahmood Naderan-Tahan < [hidden email]> wrote: > Hi > > May I know where is the location of commands we used in R in the history? > > > Regards, > Mahmood > > [[alternative HTML version deleted]] > > ______________________________________________ > [hidden email] mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > -- John Kane Kingston ON Canada [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
In reply to this post by Mahmood Naderan-Tahan
On the Mac it is ~/.Rhistory
el On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote: > Hi > > May I know where is the location of commands we used in R in the history? > > > Regards, > Mahmood-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist [hidden email] / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
OK. It seems that it depends on where R is launched.
In my case, I found .Rhistory file in ~/Documents. Regards, Mahmood ________________________________ From: R-help <[hidden email]> on behalf of Dr Eberhard W Lisse <[hidden email]> Sent: Sunday, February 28, 2021 4:06:26 PM To: [hidden email] Subject: Re: [R] Command history On the Mac it is ~/.Rhistory el On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote: > Hi > > May I know where is the location of commands we used in R in the history? > > > Regards, > Mahmood-- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist [hidden email] / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
Oh
find ~ -name .Rhistory 2>/dev/null shows 12 file :-)-O vriendelijke groeten/sincères amitiés, el On 2021-02-28 17:17 , Mahmood Naderan-Tahan wrote: > OK. It seems that it depends on where R is launched. > > In my case, I found .Rhistory file in ~/Documents. > > > Regards, > Mahmood [...] -- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist [hidden email] / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
In reply to this post by Dr Eberhard W Lisse
On the Mac there can be 2 files. The R Studio uses .Rhistory, but Rapp
uses .Rapp.history. David L Carlson On Sun, Feb 28, 2021 at 9:06 AM Dr Eberhard W Lisse <[hidden email]> wrote: > On the Mac it is ~/.Rhistory > > el > > On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote: > > Hi > > > > May I know where is the location of commands we used in R in the history? > > > > > > Regards, > > Mahmood-- > Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist > [hidden email] / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP > 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply > > ______________________________________________ > [hidden email] mailing list -- To UNSUBSCRIBE and more, see > > https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNLWMbd-s$ > PLEASE do read the posting guide > https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNnW6K_7Y$ > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
I don't use R.app.
And as I wrote later, there are a number of .Rhistory so it depends on where you start R/RStudio from. el On 2021-03-01 22:29 , David Carlson wrote: > On the Mac there can be 2 files. The R Studio uses .Rhistory, but Rapp > uses .Rapp.history. > > David L Carlson > > On Sun, Feb 28, 2021 at 9:06 AM Dr Eberhard W Lisse <[hidden email] > <mailto:[hidden email]>> wrote: > > On the Mac it is ~/.Rhistory > > el > > On 2021-02-28 15:39 , Mahmood Naderan-Tahan wrote: > > Hi > > > > May I know where is the location of commands we used in R in the > history? > > > > > > Regards, > > Mahmood-- > Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist > [hidden email] / * | Telephone: +264 81 124 6733 (cell) > PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP > 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply > > ______________________________________________ > [hidden email] <mailto:[hidden email]> mailing list -- > To UNSUBSCRIBE and more, see > https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNLWMbd-s$ > <https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNLWMbd-s$> > > PLEASE do read the posting guide > https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNnW6K_7Y$ > <https://urldefense.com/v3/__http://www.R-project.org/posting-guide.html__;!!KwNVnqRv!SUf5kuq252PAyFzTK-iHj_UuxwZnkuU_IN9jLFqA2A4KEY2Tg5h4iIQNnW6K_7Y$> > > and provide commented, minimal, self-contained, reproducible code. > -- Dr. Eberhard W. Lisse \ / Obstetrician & Gynaecologist [hidden email] / * | Telephone: +264 81 124 6733 (cell) PO Box 8421 Bachbrecht \ / If this email is signed with GPG/PGP 10007, Namibia ;____/ Sect 20 of Act No. 4 of 2019 may apply ______________________________________________ [hidden email] mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. |
Free forum by Nabble | Edit this page |