How to include bash scripts in a package?

I need to include several bash scripts in the R package that I am writing. I would like to distribute them with the package, so when the user installs the package through devtools::install_github(...), he also receives scripts.

I know that this is possible, but I do not know how to do it. Including files in a subdirectory scriptsseems insufficient. I need a tool to say R (or RStudio) to turn them on.

I use RStudio for development, so I would appreciate a solution that integrates with the "Build package" functionality provided by RStudio.

+4
source share
1 answer

, inst/xxx .

​​ xxx / .

system.file(), .

system.file('scripts/peak_mem.sh', package='clustertools')

R Hadley Wickham

@Axeman!

+2

Source: https://habr.com/ru/post/1685738/


All Articles