Friday, January 20, 2023

Create your own package in R

New Package Development in R

1. Open new package

2.Open new directory

3.R package using devtools

4. Write directory name

5. load library(devtools)

6. use_r("soilcalculations")

7. write function.

8. save function

9. open code: Insert Reoxygen skeleton (keep curse on function)

10. write the required function detail

11. save

12. install function

13. press Ctr+Shift+L (Build>Load)

14. press Ctrl+Shift+D (Build>Documents

12. Always open same directory for updation 

No comments:

Post a Comment