Hi folks!
I've encountered an intriguing issue while conducting a package installation process. Currently, I'm working on R version 4.2.1 within the Posit Workbench 2023.03.1+446.pro1, “Cherry Blossom” environment.
I've developed a package named APIUtilizeR and subsequently uploaded it to our internal POSIT Package Manager. Within the DESCRIPTION file of this package, certain dependencies are specified under the Suggests section, including:
covr,
DBI,
lintr (>= 3.1.1),
**RSQLite**,
stringi,
testthat,
usethis
Notably, the package 'RSQLite' is included for testing purposes solely, as depicted in the attached image:
My understanding was that by labeling it under 'Suggests', the package 'RSQLite' would be exclusively required during testing procedures. However, upon attempting to install the package using install.packages("APIUtilizeR")
, the following error is encountered:
Error in check_installed(package) : The package "RSQLite" is required.
Error: unable to load R code in package ‘APIUtilizeR’
Execution halted
ERROR: lazy loading failed for package ‘APIUtilizeR’
The occurrence of this error seems perplexing since 'RSQLite' is annotated under 'Suggests', implying it's not necessary for the core functionality and therefore the installation of the package. Nevertheless, the failure of the installation process suggests otherwise.
Could there be a misconception on my part concerning the distinction between 'Imports' and 'Suggests' in the DESCRIPTION file? Any insights or clarifications on this matter would be greatly appreciated.