- Create the directory
R_src
. - For each function create a directory named as the function, like
R_src/f1/
andR_src/f2/
. - Put the main R functions in that directories, i.e.
R_src/f1/f1.R
andR_src/f2/f2.R
. - Create the directory
main/
in each function directory, likeR_src/f1/main/
andR_src/f2/main/
. - In each
main/
directory create an R script. Its name should bemain.R
. (R_src/f1/main/main.R
andR_src/f2/main/main.R
) - Each
main.R
includes a minimum example for its function. As an example, the following script is for the functionf1.R
:
source('../f1.R')
f1(1,2)
- Please put the file
.export
in your main functions directories. - Run the bash script
link.sh
before installation.
The library roxygen2
should be installed. Then, run the bash script roxygenize.sh
to install the package.
Run the bash script install.sh
to install the package.