Apologies in advance if this is a red herring, but I've had a number of issues with installing latest (4.0.2) version of R and related packages. Maybe my experience will be helpful to you.
Note that you don't give your OS etc., which also my mean my suggestions are moot. I run Linux, mostly Mint. Recently I upgraded to LM 20. And then upgraded R from 3.5.x to 4.0.x. When updating packages, I found lots of errors where a dependency was stated to be pre-version 4 and to reinstall. But even after a re-install, I got the same message. This occurred on 3 machines in slightly different manifestations, likely because the machines are different ages and there may be more or less "old" material lurking in folders that should have been removed a long time ago. My suspicion is that the wrong libraries were being accessed. My solution was to - remove --purge r-base-dev r-recommended - delete directories /usr/lib/R, /usr/local/lib/R and ~/R - reinstall (noting that the software sources needed to point to debian focal and cran40). - install packages I needed This may be a bit drastic, but R and Linux make the task relatively undemanding. It also gives a cleaned up R ecosystem, as the ongoing addition of bits and pieces makes for quite a load of packages, some of which are almost certain to be unused but may cause trouble. Good luck, John Nash On 2020-07-23 12:44 p.m., David Krackhardt wrote: > When I try to install the "mice" package, it tells me I can't without a > current version of Rtools. When I try to install Rtools, it tells me the > current version is actually Rtools40. When I try to install Rtools40, it > tells me that Rtools40 is not available for R version 3.6.3, which is the > newest version of R (and the one I have). > > All I want is the "mice" library. What do I do? > > -David > -------------------- > > David Krackhardt, Professor of Organizations > Heinz College of Public Policy and Management, and > The Tepper School of Business > 2215 Hamburg Hall > Carnegie Mellon University > Pittsburgh, PA 15213 > website: www.andrew.cmu.edu/~krack > (Erdos#=2) > > -------------------- > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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@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.