Type ?.Renviron ?R.home ?"environment variables" at the R prompt to get what I think should be the info you need (or at least useful info). Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Wed, Apr 29, 2020 at 2:37 PM Steven <syen at hqu.edu.cn> wrote:> > Thanks John. Where is file .Renviron located? It must be a hidden file. > I cannot find it. > > On 2020/4/28 ?? 08:29, Fox, John wrote: > > Dear Steven, > > > > Did you follow the instruction on the Rtools webpage to add > > > > PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" > > > > to your .Renviron file? > > > > I hope this helps, > > John > > > > ----------------------------- > > John Fox, Professor Emeritus > > McMaster University > > Hamilton, Ontario, Canada > > Web: http::/socserv.mcmaster.ca/jfox > > > >> On Apr 28, 2020, at 4:38 AM, Steven <syen at hqu.edu.cn> wrote: > >> > >> Dear All > >> > >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to now > >> the new default folder c:\rtools40). While compiling a package (binary) > >> I received the follow marning message saying Rtools is required. Any > >> clues? Thanks. > >> > >> Steven Yen > >> > >> WARNING: Rtools is required to build R packages but is not currently > >> installed. Please download and install the appropriate version of Rtools > >> before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ > >> > >> > >> [[alternative HTML version deleted]] > >> > >> ______________________________________________ > >> R-help at r-project.org 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. > > ______________________________________________ > R-help at r-project.org 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.
Dear Steven, It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in Folder Options > View to click "Show hidden files" and uncheck "hide extensions". Then .Renviron should show up (once you've created it). Best, John> -----Original Message----- > From: Bert Gunter <bgunter.4567 at gmail.com> > Sent: Wednesday, April 29, 2020 5:50 PM > To: Steven <syen at hqu.edu.cn> > Cc: Fox, John <jfox at mcmaster.ca>; R-help Mailing List <r-help at r- > project.org> > Subject: Re: [R] Rtools required > > Type > ?.Renviron > ?R.home > ?"environment variables" > > at the R prompt to get what I think should be the info you need (or at > least useful info). > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along and > sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > On Wed, Apr 29, 2020 at 2:37 PM Steven <syen at hqu.edu.cn> wrote: > > > > Thanks John. Where is file .Renviron located? It must be a hidden file. > > I cannot find it. > > > > On 2020/4/28 ?? 08:29, Fox, John wrote: > > > Dear Steven, > > > > > > Did you follow the instruction on the Rtools webpage to add > > > > > > PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" > > > > > > to your .Renviron file? > > > > > > I hope this helps, > > > John > > > > > > ----------------------------- > > > John Fox, Professor Emeritus > > > McMaster University > > > Hamilton, Ontario, Canada > > > Web: http::/socserv.mcmaster.ca/jfox > > > > > >> On Apr 28, 2020, at 4:38 AM, Steven <syen at hqu.edu.cn> wrote: > > >> > > >> Dear All > > >> > > >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to > > >> now the new default folder c:\rtools40). While compiling a package > > >> (binary) I received the follow marning message saying Rtools is > > >> required. Any clues? Thanks. > > >> > > >> Steven Yen > > >> > > >> WARNING: Rtools is required to build R packages but is not > > >> currently installed. Please download and install the appropriate > > >> version of Rtools before proceeding: > > >> https://cran.rstudio.com/bin/windows/Rtools/ > > >> > > >> > > >> [[alternative HTML version deleted]] > > >> > > >> ______________________________________________ > > >> R-help at r-project.org 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. > > > > ______________________________________________ > > R-help at r-project.org 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.
Careful so you don't overwrite an existing ~/.Renviron file; it's safer to use something like: cat('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"\n', file="~/.Renviron" append=TRUE) /Henrik On Wed, Apr 29, 2020, 15:33 Fox, John <jfox at mcmaster.ca> wrote:> Dear Steven, > > It's possible that Windows will hide .Renviron, but it's generally a good > idea, in my opinion, in Folder Options > View to click "Show hidden files" > and uncheck "hide extensions". Then .Renviron should show up (once you've > created it). > > Best, > John > > > -----Original Message----- > > From: Bert Gunter <bgunter.4567 at gmail.com> > > Sent: Wednesday, April 29, 2020 5:50 PM > > To: Steven <syen at hqu.edu.cn> > > Cc: Fox, John <jfox at mcmaster.ca>; R-help Mailing List <r-help at r- > > project.org> > > Subject: Re: [R] Rtools required > > > > Type > > ?.Renviron > > ?R.home > > ?"environment variables" > > > > at the R prompt to get what I think should be the info you need (or at > > least useful info). > > > > > > Bert Gunter > > > > "The trouble with having an open mind is that people keep coming along > and > > sticking things into it." > > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > > On Wed, Apr 29, 2020 at 2:37 PM Steven <syen at hqu.edu.cn> wrote: > > > > > > Thanks John. Where is file .Renviron located? It must be a hidden file. > > > I cannot find it. > > > > > > On 2020/4/28 ?? 08:29, Fox, John wrote: > > > > Dear Steven, > > > > > > > > Did you follow the instruction on the Rtools webpage to add > > > > > > > > PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" > > > > > > > > to your .Renviron file? > > > > > > > > I hope this helps, > > > > John > > > > > > > > ----------------------------- > > > > John Fox, Professor Emeritus > > > > McMaster University > > > > Hamilton, Ontario, Canada > > > > Web: http::/socserv.mcmaster.ca/jfox > > > > > > > >> On Apr 28, 2020, at 4:38 AM, Steven <syen at hqu.edu.cn> wrote: > > > >> > > > >> Dear All > > > >> > > > >> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to > > > >> now the new default folder c:\rtools40). While compiling a package > > > >> (binary) I received the follow marning message saying Rtools is > > > >> required. Any clues? Thanks. > > > >> > > > >> Steven Yen > > > >> > > > >> WARNING: Rtools is required to build R packages but is not > > > >> currently installed. Please download and install the appropriate > > > >> version of Rtools before proceeding: > > > >> https://cran.rstudio.com/bin/windows/Rtools/ > > > >> > > > >> > > > >> [[alternative HTML version deleted]] > > > >> > > > >> ______________________________________________ > > > >> R-help at r-project.org 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. > > > > > > ______________________________________________ > > > R-help at r-project.org 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. > ______________________________________________ > R-help at r-project.org 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]]
Thanks to all - very helpful. I search from c:\ and now find file .Renviron located in C:\Users\USER\Documents. That does it. I would like to pose an additional question, since it would also fall under the same subject line. This is an RStudio question but since I am using the free version the RStudio folks would not help me. My students simply need to install packages and are not building any packages so they have no reason to install Rtools. When they install (not build) packages (from CRAN or file archive) they received the same warning message saying "Rtools required to build a package". This is nonsense of course as they are, as I said, simply installing. I tell them to user an older RStudio version, specifically 1.1.463 that's free of that warning. Any idea? Steven Yen On 2020/4/30 ?? 06:30, Fox, John wrote:> Dear Steven, > > It's possible that Windows will hide .Renviron, but it's generally a good idea, in my opinion, in Folder Options > View to click "Show hidden files" and uncheck "hide extensions". Then .Renviron should show up (once you've created it). > > Best, > John > >> -----Original Message----- >> From: Bert Gunter <bgunter.4567 at gmail.com> >> Sent: Wednesday, April 29, 2020 5:50 PM >> To: Steven <syen at hqu.edu.cn> >> Cc: Fox, John <jfox at mcmaster.ca>; R-help Mailing List <r-help at r- >> project.org> >> Subject: Re: [R] Rtools required >> >> Type >> ?.Renviron >> ?R.home >> ?"environment variables" >> >> at the R prompt to get what I think should be the info you need (or at >> least useful info). >> >> >> Bert Gunter >> >> "The trouble with having an open mind is that people keep coming along and >> sticking things into it." >> -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) >> >> On Wed, Apr 29, 2020 at 2:37 PM Steven <syen at hqu.edu.cn> wrote: >>> Thanks John. Where is file .Renviron located? It must be a hidden file. >>> I cannot find it. >>> >>> On 2020/4/28 ?? 08:29, Fox, John wrote: >>>> Dear Steven, >>>> >>>> Did you follow the instruction on the Rtools webpage to add >>>> >>>> PATH="${RTOOLS40_HOME}\usr\bin;${PATH}" >>>> >>>> to your .Renviron file? >>>> >>>> I hope this helps, >>>> John >>>> >>>> ----------------------------- >>>> John Fox, Professor Emeritus >>>> McMaster University >>>> Hamilton, Ontario, Canada >>>> Web: http::/socserv.mcmaster.ca/jfox >>>> >>>>> On Apr 28, 2020, at 4:38 AM, Steven <syen at hqu.edu.cn> wrote: >>>>> >>>>> Dear All >>>>> >>>>> I updated to R-4.0.0. and also installed the latest Rtools 4.0 (to >>>>> now the new default folder c:\rtools40). While compiling a package >>>>> (binary) I received the follow marning message saying Rtools is >>>>> required. Any clues? Thanks. >>>>> >>>>> Steven Yen >>>>> >>>>> WARNING: Rtools is required to build R packages but is not >>>>> currently installed. Please download and install the appropriate >>>>> version of Rtools before proceeding: >>>>> https://cran.rstudio.com/bin/windows/Rtools/ >>>>> >>>>> >>>>> [[alternative HTML version deleted]] >>>>> >>>>> ______________________________________________ >>>>> R-help at r-project.org 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. >>> ______________________________________________ >>> R-help at r-project.org 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.