Please use the successor: rt
Command line R script for GNU make
like functionality. Offers some convenience command line commands to facilitate package developement in R.
This project aims to substitute makeR sooner or later.
To make use of dt
put in in your PATH
and make it executable. This can be done in the following way on Unix-Systems:
-
Clone the repository
-
Make a symbolic link (symlink) of the dt-file into your bin-directory, e.g.
ln -s ~/path-to-the-dt-repository/dt /usr/local/bin/
. Alternatively you can create a user-specific bin-directory in you home directory viamkdir ~/bin
and place the symlink in it vialn -s ~/path-to-the-dt-repository/dt ~/bin
. On Windows you proceed in a similar fashion. Adjust thePATH
variable in the system environment via the control panel or use the admin console commandSETX /M PATH "%PATH%;path-to-the-dt-repository"
in the windows prompt (Option/M
changes thePATH
inHKEY_LOCAL_MACHINE
instead ofHKEY_CURRENT_USER
). If it does not work for you, try it without the/M
option. In any case you need to open a new windows prompt or terminal windows in order to reload thePATH
variable. -
Assure that you have installed all the required R-packages methods, optparse, roxygen2, devtools, testhat and covr. The latter is not released on CRAN until now. So the following instructions should be performed:
install.packages(c("methods", "optparse", "devtools", "roxygen2", "testthat"))
devtools::install_github("jimhester/covr")
Once dt
is configured, you should be able to use it. Thus, just go into the root of a package's directory, type dt
and confirm with the enter key. You should see a detailed overview of the available commands and a description of their effect.
Please use the issue tracker for problems, questions and comments.