Execution halted: File not found. The file is 'bogus.'

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:

==> devtools::document(roclets=c('rd', 'collate', 'namespace', 'vignette'))

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.

Help will be greatly appreciated.

Thanks,
Paul

To further explore the problem, I ran the following:

devtools::check()
Updating CF documentation
Loading CF

Results

  1. ── 1 error :heavy_multiplication_x: | 1 warning :heavy_multiplication_x: | 3 notes :heavy_multiplication_x:

  2. N checking top-level files
    Non-standard file/directory found at top level:
    ‘CF.mb’

  3. E checking examples
    Running examples in ‘CF-Ex.R’ failed
    The error most likely occurred in:

    base::assign(".ptime", proc.time(), pos = "CheckExEnv")

    Name: cfanim

    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

  1. It is surprising to me that devtools::check() works.

  2. 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

─ Packages ────────────────────────────────────────────────────────────────────────────────────────
package * version date source
animation 2.5 2017-03-30 CRAN (R 3.4.0)
ansistrings 1.0.0.9000 2018-01-31 Github (r-lib/ansistrings@f27619b)
assertthat 0.2.0 2017-04-11 CRAN (R 3.4.2)
backports 1.1.2 2017-12-13 CRAN (R 3.4.3)
base64enc 0.1-3 2015-07-28 CRAN (R 3.4.2)
bindr 0.1 2016-11-13 CRAN (R 3.4.0)
bindrcpp 0.2 2017-06-17 CRAN (R 3.4.0)
broom 0.4.3 2017-11-20 CRAN (R 3.4.2)
callr 2.0.2 2018-02-13 Github (r-lib/callr@3564fa7)
cellranger 1.1.0 2016-07-27 CRAN (R 3.4.0)
CF * 0.1.0 local
cli 1.0.0.9001 2018-02-05 Github (r-lib/cli@1b58269)
clisymbols 1.2.0 2017-05-21 CRAN (R 3.4.2)
colorspace 1.3-2 2016-12-14 CRAN (R 3.4.0)
commonmark 1.4 2017-09-01 CRAN (R 3.4.1)
crayon 1.3.4 2017-09-16 CRAN (R 3.4.2)
debugme 1.1.0 2017-10-22 CRAN (R 3.4.2)
desc 1.1.1 2017-08-03 CRAN (R 3.4.2)
devtools 1.13.5.9000 2018-02-13 Github (hadley/devtools@03747d1)
digest 0.6.15 2018-01-28 CRAN (R 3.4.3)
dplyr 0.7.4 2017-09-28 CRAN (R 3.4.2)
evaluate 0.10.1 2017-06-24 CRAN (R 3.4.2)
fda 2.4.7 2017-08-14 CRAN (R 3.4.1)
forcats 0.2.0 2017-01-23 CRAN (R 3.4.0)
foreign 0.8-69 2017-06-22 CRAN (R 3.4.2)
gganimate * 0.1.0.9000 2018-02-05 Github (dgrtwo/gganimate@bf82002)
ggplot2 * 2.2.1 2016-12-30 CRAN (R 3.4.0)
glue 1.2.0 2017-10-29 CRAN (R 3.4.2)
gtable 0.2.0 2016-02-26 CRAN (R 3.4.0)
haven 1.1.1 2018-01-18 CRAN (R 3.4.3)
hms 0.4.1 2018-01-24 CRAN (R 3.4.2)
htmltools 0.3.6 2017-04-28 CRAN (R 3.4.2)
httr 1.3.1 2017-08-20 CRAN (R 3.4.2)
jsonlite 1.5 2017-06-01 CRAN (R 3.4.2)
knitr 1.19 2018-01-29 CRAN (R 3.4.3)
labeling 0.3 2014-08-23 CRAN (R 3.4.0)
lattice 0.20-35 2017-03-25 CRAN (R 3.4.2)
lazyeval 0.2.1 2017-10-29 CRAN (R 3.4.2)
lubridate 1.7.2 2018-02-06 CRAN (R 3.4.3)
magick 1.6 2017-12-01 CRAN (R 3.4.3)
magrittr 1.5 2014-11-22 CRAN (R 3.4.2)
MASS 7.3-48 2017-12-25 CRAN (R 3.4.3)
Matrix 1.2-12 2017-11-15 CRAN (R 3.4.2)
memoise 1.1.0 2017-04-21 CRAN (R 3.4.2)
mnormt 1.5-5 2016-10-15 CRAN (R 3.4.0)
modelr 0.1.1 2017-07-24 CRAN (R 3.4.1)
munsell 0.4.3 2016-02-13 CRAN (R 3.4.0)
nlme 3.1-131 2017-02-06 CRAN (R 3.4.2)
pillar 1.1.0 2018-01-14 CRAN (R 3.4.2)
pkgbuild 0.0.0.9000 2018-02-13 Github (r-lib/pkgbuild@2d61974)
pkgconfig 2.0.1 2017-03-21 CRAN (R 3.4.0)
pkgload 0.0.0.9000 2018-02-13 Github (r-lib/pkgload@f2cc46f)
plyr 1.8.4 2016-06-08 CRAN (R 3.4.0)
prettyunits 1.0.2 2015-07-13 CRAN (R 3.4.2)
progress 1.1.2.9002 2018-02-02 Github (r-lib/progress@97f2c4e)
psych 1.7.8 2017-09-09 CRAN (R 3.4.2)
purrr 0.2.4 2017-10-18 CRAN (R 3.4.2)
R6 2.2.2 2017-06-17 CRAN (R 3.4.2)
rcmdcheck 1.2.1 2016-09-28 CRAN (R 3.4.2)
Rcpp 0.12.15 2018-01-20 CRAN (R 3.4.3)
readr 1.1.1 2017-05-16 CRAN (R 3.4.0)
readxl 1.0.0 2017-04-18 CRAN (R 3.4.0)
rematch2 2.0.1 2017-06-20 CRAN (R 3.4.1)
reshape2 1.4.3 2017-12-11 CRAN (R 3.4.3)
rlang 0.1.6.9003 2018-02-09 Github (tidyverse/rlang@616fd4d)
rmarkdown 1.8 2017-11-17 CRAN (R 3.4.2)
roxygen2 6.0.1 2017-02-06 CRAN (R 3.4.0)
rprojroot 1.3-2 2018-01-03 CRAN (R 3.4.2)
rstudioapi 0.7.0-9000 2018-02-09 Github (rstudio/rstudioapi@109e593)
rvest 0.3.2 2016-06-17 CRAN (R 3.4.0)
scales 0.5.0.9000 2018-02-09 Github (hadley/scales@d767915)
sde 2.0.15 2016-04-13 CRAN (R 3.4.0)
selectr 0.3-1 2016-12-19 CRAN (R 3.4.0)
sessioninfo 1.0.1.9000 2017-11-16 Github (r-lib/sessioninfo@c871d01)
stringi 1.1.6 2017-11-17 CRAN (R 3.4.2)
stringr 1.2.0 2017-02-18 CRAN (R 3.4.2)
testthat 2.0.0 2017-12-13 CRAN (R 3.4.3)
tibble 1.4.2 2018-01-22 CRAN (R 3.4.2)
tidyr 0.8.0 2018-01-29 CRAN (R 3.4.2)
tidyverse 1.2.1 2017-11-14 CRAN (R 3.4.2)
usethis 1.2.0.9000 2018-02-13 Github (r-lib/usethis@ce4fdce)
withr 2.1.1.9000 2018-02-09 Github (jimhester/withr@df18523)
xml2 1.2.0 2018-01-24 CRAN (R 3.4.2)
yaml 2.1.16 2017-12-12 CRAN (R 3.4.3)
zoo 1.8-1 2018-01-08 CRAN (R 3.4.3)

Worth linking to our related thread on this matter: