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.
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.
Hello John, Perhaps you can help me. I am an idiot. I visited the Rtools web page and learn to run the following lines in R: Still I am getting the same warning message. > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con = "~/.Renviron") > Sys.which("make") ????????????????????????????? make "C:\\rtools40\\usr\\bin\\make.exe" 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.
Dear Steven,> -----Original Message----- > From: Steven <syen at hqu.edu.cn> > Sent: Tuesday, April 28, 2020 9:50 AM > To: Fox, John <jfox at mcmaster.ca> > Cc: R-help Mailing List <r-help at r-project.org> > Subject: Re: [R] Rtools required > > Hello John, > > Perhaps you can help me. I am an idiot. I visited the Rtools web page and > learn to run the following lines in R: Still I am getting the same warning > message. > > > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con > "~/.Renviron") > > Sys.which("make") > ????????????????????????????? make > "C:\\rtools40\\usr\\bin\\make.exeThe first command writes the modification to your path in the .Renviron file in your home directory, which should be executed at the start of each R session. I assume that you executed the second command in a fresh session, and it indicates that the Rtools are indeed accessible. Given that, I don't know why you're still having a problem, assuming that you tried to build the package in a fresh session *after* you created .Renviron. Sorry I can't be of more help, John> > 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.
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.
On Wed, Apr 29, 2020 at 11:37 PM Steven <syen at hqu.edu.cn> wrote:> > Hello John, > > Perhaps you can help me. I am an idiot. I visited the Rtools web page > and learn to run the following lines in R: Still I am getting the same > warning message. > > > writeLines('PATH="${RTOOLS40_HOME}\\usr\\bin;${PATH}"', con > "~/.Renviron") > > Sys.which("make") > make > "C:\\rtools40\\usr\\bin\\make.exe"That looks OK. Did you restart rstudio? How exactly are getting this error? Are you using install.packages() in R? Or using the pkgbuild package? Also are you running the latest version of rstudio? I think old versions may have had difficulty finding rtools40.