Re: [R-pkg-devel] Dependencies in DESCRIPTION: Imports vs. Suggests

2018-11-19 Thread Joris Meys
Dear Paul, the correct form is something like: if( requireNamespace("abind", quietly = TRUE) ) { abind::foo() # do sth with abind} else { message("you need to install the pkg abind for this example") } In general you should avoid sending out code that installs packages. Some people work wit

Re: [R-pkg-devel] Dependencies in DESCRIPTION: Imports vs. Suggests

2018-11-19 Thread Paul Hargarten
Hi all, I am relatively new in creating R packages. I have created a new package called *"foo"* and submitted it to CRAN for review. I am wondering the difference between "Imports" and "Suggests" dependencies in DESCRIPTION file. According to my understanding, the "Imports" field contains all pac