How to set PATH on Windows through R “shell” command

前端 未结 3 1604
粉色の甜心
粉色の甜心 2021-02-06 08:57

I wish to add git to my PATH in Windows 7, through the \"shell\" command in R.

shell(\'set PATH=%PATH%;\"C:\\\\Program%20Files%20(x86)\\\\Git\\\\bin\"\', intern          


        
3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 09:41

    Regarding

    what is the issue?

    You're just changing the PATH environment variable in the new command interpreter process.


    You can use the setx command to change the PATH defaults, but that does not affect your current process.

    What to do depends a bit on what you're trying to achieve.

提交回复
热议问题