Somehow a 'CF.mb' file was unintentinally created. My best guess is that I made a typo. I created a 'monster.' I don't want it in my package because it does not belong there. I cannot get rid of it.
Rstudio looks for it, whether or not the CF.mb' file resides in my package or not. When I execute a CLEAN and REBUILD or run 'Knit,' I receive the following:
Updating CF documentation
Loading CF
Warning: The existing 'NAMESPACE' file was not generated by roxygen2, and will not be overwritten.
Updating vignettes
Documentation completed
==> R CMD INSTALL --preclean --no-multiarch --with-keep.source CF
Error: object 'CF.mb' not found
Execution halted
Exited with status 1.
Strangely, all the functions in my 'CF' package execute properly. Let me clarify the situation. When I first discovered the problem, I could not the 'CF.mb' file on my computer. I made an empty 'CF.mb' file to see if it would resolve the problem. It does not. I get the same 'Execution error'.
I suspect that is a devtools function dealing with INSTALL can fix the problem. I am a novice Rstudio user and cannot find an answer.
Title: 'cfanim' uses a Brownian motion model of speed to animate a
driver's ability to maintain a speed 'u'.
Aliases: cfanim
─ > ### ** Examples
cfanim(60, 3, 30, 0.25)
Error in ggplot(df, xlim = xlim, ylim = ylim, col = gray(0.5)) :
could not find function "ggplot"
Calls: cfanim
Execution halted.
Comments
It is surprising to me that devtools::check() works.
The animation, cfanim(60, 3, 30, 0.25), works.
devtools::session_info()
─ Session info ────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.4.2 (2017-09-28)
os macOS High Sierra 10.13.3
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
tz
date 2018-02-13