Error while importing mice functions in R package
<p>I would like to include the mice::mice function in my package to perform imputation on my data.</p>

<p>I use Roxygen to list imports</p>

<pre><code>#' @param data dataset to be used for imputation
#' @importFrom dplyr select_
#' @importFrom mice mice complete
#' @return A list
#' @export
#' 
impute_data &lt;- function(data, vars, seed)
{
     data_used &lt;- select_(data,vars)
     mice_data &lt;- complete(mice(data_used, seed = seed))
     return(mice_data)
}
</code></pre>

<p>This function works fine when I test the code, however when I build the package and try to use it, I get the following error</p>

<pre><code>Error in check.method(setup, data) : 
  The following functions were not found: mice.impute.pmm,mice.impute.pmm, mice.impute.pmm, mice.impute.pmm, mice.impute.pmm 
</code></pre>

<p>I tried to add to the imports all the functions mentioned in the error but it had no effect whatsoever on the outcome.</p>

<p>What am I missing? I've never found such a problem.</p>