I have an R package that I've been building in RStudio, let's called it my_pkg
. When I run devtools::load_all(".")
within RStudio (specifically using the Ctrl + Shift + L
shortcut), I get the following message:
Loading my_pkg
Warning messages:
1: character(0)
2: character(0)
3: character(0)
4: character(0)
5: character(0)
All of the functions in the package work fine. My NAMESPACE
and DESCRIPTION
files are complete with no syntax errors. When I run ?my_pkg
, however, the help file does not match the specifications provided in the DESCRIPTION
file. When I remove the Imports
from DESCRIPTION
, there is no more character(0)
warning message. Of course, I need those imports. When I change Imports
to Suggests
, there is character(0)
warning message.
Here is the description file content, with some stuff changed to protect IP.
Package: scoutdroid
Title: This is where the title is.
Version: 0.1
Authors@R: "Ben Hanowell <benjamin.hanowell@redfin.com> [aut, cre]"
Description: This is where the description is.
Depends:
R (>= 3.1.0)
Imports:
dplyr,
lubridate,
mboost,
randomForestSRC,
RODBC,
stringr
License: file LICENSE
LazyData: true
And here is NAMESPACE
.
# Generated by roxygen2 (4.0.1): do not edit by hand
import(RODBC)
import(dplyr)
import(lubridate)
import(mboost)
import(parallel)
import(randomForestSRC)
import(stringr)
When I use the RStudio Build & Reload button in the Build tab, I get the following warnings:
** preparing package for lazy loading
Warning: replacing previous import by 'lubridate::intersect' when loading 'scoutdroid'
Warning: replacing previous import by 'lubridate::setdiff' when loading 'scoutdroid'
Warning: replacing previous import by 'lubridate::union' when loading 'scoutdroid'
edit Added some more details to help folks understand what might be going on.
edit 2 I also added the DESCRIPTION
file, although I don't provide the full package, which is proprietary.
edit 3 Added NAMESPACE
.
edit 4 Added warnings that occur when using RStudio Build & Reload button in the Build tab.