Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing the destination of R CMD build

Tags:

package

r

Is it possible to set a flag in the R CMD build ... command which specifies the destination folder for the tar.gz file?

I have looked pretty closely at the R CMD --help and cannot see it - but i may be missing something.

like image 809
ricardo Avatar asked Oct 24 '25 14:10

ricardo


1 Answers

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.

like image 132
Gavin Simpson Avatar answered Oct 27 '25 05:10

Gavin Simpson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!