R CMD build ...ファイルの保存先フォルダを指定するコマンドにフラグを設定することはできtar.gzますか?
私はかなりよく見て、R CMD --helpそれを見ることができません-しかし、私は何かが欠けているかもしれません。
The normal way to do this would be to cd to the destination folder and run R CMD build foo from there. E.g. sources are in ~/pkgsrcs/foo and you want tar.gz to be in ~/pkgbuild/foo then:
cd ~/pkgbuild/foo
R CMD build ~/pkgsrcs/foo
will result in foo_version.tar.gz in ~/pkgsrcs/foo.