Windows has four sets of environment variables (system, user, mutable, and process set). The first three sets are stored in the registry, but the set of processes is not so, even if they blocked the registry, as a rule, you can still set process environment variables (including PATH) in the local process, that is, on a temporary basis, so you can double-check your assumptions that you canβt change anything. Most likely, you cannot change the system variables and registry, but you can change the set in your local process. To verify this from the Windows cmd line, enter the following:
set mytest=123 set mytest
and if the second line shows that mytest is 123 , then you probably have all the necessary permissions.
In addition, everything you need to install is automatically processed by you R.bat in the distribution of batch files , so you do not need to install wow.
Just make sure that Rtools and R are installed in standard locations (you can tell them to skip the configuration of any registry keys during the installation process), make sure that R.bat is in your path or in the current directory and starts:
R.bat CMD INSTALL mypackage.tar.gz
without setting environment variables, registry keys, or paths.
If this does not work, try Rpathset.bat also from batch files, which is not automatic, for example R.bat , but, on the other hand, is extremely flexible, since you must modify the SET statutes in it as you want.
There is a PDF document that comes with batch files that contain additional information.