Leftovers from knitr

I tried to install a package but face error when when.

> checking files in 'vignettes' ... NOTE
  The following directory looks like a leftover from 'knitr':
    'figure'
  Please remove from your package.

0 errors v | 3 warnings x | 2 notes x
Error: R CMD check found WARNINGs
Execution halted

Exited with status 1.

Refer to the solution via Leftovers from knitr as showing below but not helps.

One solution is to put

figure$
cache$

in a .Rbuildignore file in the main package directory. This only works if you R CMD check on a built tarball rather than on the package source directory, but that's recommended as best practice anyway ... and it's effectively (I think) what the "Check" button in RStudio does, i.e. calling devtools::check , which automatically builds and checks a source package, using all known best practices.

I tried to create a vignette folder and put a subdir named figure/RYO.jpg, just wonder why sometimes faced no lubridate package sometimes not when clicked check button. Wonder why the path is wrong?

pandoc.exe: Could not fetch figure/RYO.jpg
   figure/RYO.jpg: openBinaryFile: does not exist (No such file or directory)
   Error: processing vignette 'Intro.Rmd' failed with diagnostics:
   pandoc document conversion failed with error 67
   Execution halted

I set a sub-directory as a default path for this project farsdata r package.

I tried to refer to below links but don't understand... Do appreciate if somebody shade me a light.

Would you share the vignette's Rmd code? If so, please post the code itself instead of a picture. That makes it easier for others to try recreating your problem.

If it's a long vignette, then please just post the YAML header and the part with the figure/RYO.jpg image.