I\'m trying to run devtools::install_github(\"gaborcsardi/notifier\") but R does not appear to be properly recognizing RTools; which is located in C:\\Rto
There is a standalone mode in remotes. This mode removes the dependency on pkgbuild that was the proximate cause of the error (the ultimate problem is much deeper in the call chain).
This is documented in the remotes package readme.
You can force remotes to use the standalone mode with
Sys.setenv(R_REMOTES_STANDALONE="true")
This solution found thank to gaborcsardi