The function install.URL should check if R is installed in a non-standard directory and warn the user to change the direcory during the R setup. The code could be inserted in the block of code at line 223:
# Note: this is the existing installr code:
if(is.windows()) {
shell_output <- shell(install_cmd, wait = wait,...) # system(exe_filename) # I suspect shell works better than system
} else {
shell_output <- system(install_cmd, wait = wait,...) # system(exe_filename) # I suspect shell works better than system
}
Warn if R is installed in a different directory
A bug can appear if:
Solution
The function install.URL should check if R is installed in a non-standard directory and warn the user to change the direcory during the R setup. The code could be inserted in the block of code at line 223: