As far as I can tell, here is the functionality offered by the exec
and tools
directories.
exec
From R-exts by way of hadley:
Subdirectory exec could contain additional executable scripts the package needs, typically scripts for interpreters such as the shell, Perl, or Tcl. This mechanism is currently used only by a very few packages. NB: only files (and not directories) under exec are installed (and those with names starting with a dot are ignored), and they are all marked as executable (mode 755, moderated by ‘umask’) on POSIX platforms. Note too that this is not suitable for executable programs since some platforms (including Windows) support multiple architectures using the same installed package directory.
exec
features I have figured out
- On POSIX platforms (*nix, os x), the files within exec will be marked as executable.
- No subdirectories of exec are included in the package, only files in
exec
root
- (note, it could contain binary executables, but there is no architecture/platform handling
tools
From R-exts:
Subdirectory tools is the preferred place for auxiliary files needed during configuration, and also for sources need to re-create scripts (e.g. M4 files for autoconf).
tools
features I have figured out
tools
is to hold files used at package compile time
- All files contained are copied recursively into the source *.tar.gz package (including subdirs)
tools
is not included in the final, compiled form of the package. All contents are dropped