I'm testing an open source package called eutradeflows on travis-ci. I placed the following instruction in .travis.yml to install dbplyr:
r_packages:
- dbplyr
I check that dbplyr works by calling one of its function with the following .travis.yml instruction:
- Rscript -e "dplyr::check_dbplyr(); dbplyr::translate_sql(x +1)"
The dbplyr::translate_sql
function does indeed return a result in travis see build 268358848 line 1162:
$ Rscript -e "dplyr::check_dbplyr(); dbplyr::translate_sql(x +1)"
<SQL> "x" + 1.0
But testthat tests that use other dbplyr functions inside my package complain, see build 268358848 line 1292:
"there is no package called 'dbplyr'"
The dbplyr is installed and working, how is that possible?
You just need to add package
dbplyr
to the DESCRIPTION file of your package.