@vi@e@gross m@iii@g oii gm@ii@com
2024-Feb-23 22:34 UTC
[R] Rtools and things dependent on it
This may be a dumb question and the answer may make me feel dumber. I have had trouble for years with R packages wanting Rtools on my machine and not being able to use it. Many packages are fine as binaries are available. I have loaded Rtools and probably need to change my PATH or something. But I recently suggested to someone that they might want to use the tabyl() function in the janitor package that I find helpful. I get a warning when I install it about Rtools but it works fine. When they install it, it fails. I assumed they would get it from CRAN the same way I did as we are both using Windows and from within RSTUDIO. In the past, I have run into other packages I could not use and just moved on but it seems like time to see if this global problem has a work-around. And, in particular, I have the latest versions of both R and RSTUDIO which can be a problem when other things are not as up-to-date. Or, maybe some people with R packages could be convinced to make binaries available in the first place? Avi [[alternative HTML version deleted]]
Avi , Your question is not dumb. Let me ask a more fundamental question. What is R tools, what does it do, and how is it used. From time to time, I receive a message when I down load a package saying I need R tools. When I receive the message, I don?t know what I should do, other than down load R tools. John John David Sorkin M.D., Ph.D. Professor of Medicine Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine Baltimore VA Medical Center 10 North Greene Street<x-apple-data-detectors://12> GRECC<x-apple-data-detectors://12> (BT/18/GR) Baltimore, MD 21201-1524<x-apple-data-detectors://13/0> (Phone) 410-605-711<tel:410-605-7119>9 (Fax) 410-605-7913<tel:410-605-7913> (Please call phone number above prior to faxing) On Feb 23, 2024, at 5:34?PM, avi.e.gross at gmail.com wrote: ?This may be a dumb question and the answer may make me feel dumber. I have had trouble for years with R packages wanting Rtools on my machine and not being able to use it. Many packages are fine as binaries are available. I have loaded Rtools and probably need to change my PATH or something. But I recently suggested to someone that they might want to use the tabyl() function in the janitor package that I find helpful. I get a warning when I install it about Rtools but it works fine. When they install it, it fails. I assumed they would get it from CRAN the same way I did as we are both using Windows and from within RSTUDIO. In the past, I have run into other packages I could not use and just moved on but it seems like time to see if this global problem has a work-around. And, in particular, I have the latest versions of both R and RSTUDIO which can be a problem when other things are not as up-to-date. Or, maybe some people with R packages could be convinced to make binaries available in the first place? Avi [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=05%7C02%7CJSorkin%40som.umaryland.edu%7C8d5f2c8346f24559a7f908dc34bf9979%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638443244987424663%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=BO9wgkrjNmI4j2deiBDxHw%2F9tVjynfQYEHhBZ8BGq%2Fk%3D&reserved=0 PLEASE do read the posting guide https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=05%7C02%7CJSorkin%40som.umaryland.edu%7C8d5f2c8346f24559a7f908dc34bf9979%7C717009a620de461a88940312a395cac9%7C0%7C0%7C638443244987432863%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C60000%7C%7C%7C&sdata=kVnTbE6ZEpmJ88Zmu%2FUbUH%2F%2FnjoSHSmDjuIxxxw3uz8%3D&reserved=0 and provide commented, minimal, self-contained, reproducible code. [[alternative HTML version deleted]]
On 2/23/24 14:34, avi.e.gross at gmail.com wrote:> This may be a dumb question and the answer may make me feel dumber. > > I have had trouble for years with R packages wanting Rtools on my machine > and not being able to use it. Many packages are fine as binaries are > available. I have loaded Rtools and probably need to change my PATH or > something.I suppose making sure that whatever directory holds your Rtools code is on your path would be a good idea. I wondered if there's an environment variable that could be set, but reading the page on using Rtools did not mention one until I got down to the section on building R from source which is surely NOT what you want to do.. You should read the information on installation and building packages from source. https://cran.r-project.org/bin/windows/base/howto-R-devel.html which includes this sentence: "It is recommended to use the defaults and install into|c:/rtools43|. When done that way, Rtools43 may be used in the same R session which installed it or which was started before Rtools43 was installed."> > But I recently suggested to someone that they might want to use the tabyl() > function in the janitor package that I find helpful. I get a warning when I > install it about Rtools but it works fine. When they install it, it fails. I > assumed they would get it from CRAN the same way I did as we are both using > Windows and from within RSTUDIO. > > In the past, I have run into other packages I could not use and just moved > on but it seems like time to see if this global problem has a work-around. > > And, in particular, I have the latest versions of both R and RSTUDIO which > can be a problem when other things are not as up-to-date. > > Or, maybe some people with R packages could be convinced to make binaries > available in the first place?Binaries are automatically produced by CRAN but perhaps you are trying to install from some other source? It would help if you could be specific about several missing pieces of information: Operating system, R version, Rtools version, current location of Rtools, names of packages and where they were obtained. Regards and good luck; David (a.k.a IRTFM)> Avi > > [[alternative HTML version deleted]]Rhelp is a plain text mailing list. You should configure your email client to send only plain-text and NOT html. [[alternative HTML version deleted]]