I think you could you the local.repo functionality of packrat. If you put the the src in a folder inside your project as folder or tarball, and set the option local.repos
to that folder, that should work.
I used it for custom not on CRAN that I wanted to include in the bundle.