I have small package of functions called bfuncs
. When I run devtools::check() in RStudio I get the following error:
==> devtools::check()
Updating bfuncs documentation
Loading bfuncs
Warning in (function (dep_name, dep_ver = "*") :
Dependency package 'flextable' not available.
Error: Dependency package(s) 'flextable' not available.
Execution halted
Exited with status 1.
Flextable is listed under Imports:
in my package DESCRIPTION
file.
Flextable is installed on my machine and I'm using it interactively without any problems. I've tried reinstalling in the manner shown here.
These posts seem to sort of relate to my problem, but I wasn't able to get a solution from them:
Package imports error on devtools::check()
Dependency package "package_name" not available
How should I deal with "package 'xxx' is not available (for R version x.y.z)" warning?
In response to @MrFlick, installed.packages()["flextable","Version”]
returns ”0.4.6”
. Yes, devtools
and flexible
are installed on the same machine and that is the machine I’m running devtools::check()
on. The version of devtools
I’m using is ”2.0.1”
.
Any help getting rid of this error is appreciated.