Rbuildignore and Excluding Directories
This appears to be an issue with RStudio. Using install
from the devtools package seems to cause the folders to be ignored. Building and installing directly from the command line also seems to cause the folders to be ignored. The 'Build & Reload' button in RStudio, however, seems to not take into account the .Rbuildignore for those folders.
You can do
usethis::use_build_ignore(c("yourfolder1", "yourfolder2", "yourfile"))