Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在R CMD build ...命令中设置一个标志来指定文件的目标文件夹tar.gz?
R CMD build ...
tar.gz
我已经非常仔细地看了R CMD --help看,但看不到它——但我可能遗漏了一些东西。
R CMD --help
执行此操作的正常方法是到cd目标文件夹并R CMD build foo从那里运行。例如来源在~/pkgsrcs/foo,你想tar.gz在~/pkgbuild/foo那时:
cd
R CMD build foo
~/pkgsrcs/foo
~/pkgbuild/foo
cd ~/pkgbuild/foo R CMD build ~/pkgsrcs/foo
将导致foo_version.tar.gz.~/pkgsrcs/foo
foo_version.tar.gz