更新时间:2022-12-22 23:10:18
运行R --version
第一行中包含有关版本的信息.
Run R --version
there's info about version on the first line.
如果您问这个问题,那么我敢打赌R不在任何这些目录中运行.检查$ PATH env变量以获取查找二进制文件的位置和顺序的信息.
If you ask this question then I bet that R is not running from any of these directories. Check $PATH env variable to get information where binaries are looked for and in which order.
使用type
shell命令来查找给定命令的二进制存储位置,所有路径的-a
,散列路径的-f
(基本上:最近使用).
Edit 2: Use type
shell command to find where binary for given command is stored, -a
for all paths, -f
for the hashed one (basically: most recently used).