This comes courtesy of a colleague. If one does 1. Create 'New package with Rcpp' followed by Build->Install+Restart -- OK 2. Add new C++ file using the examples, saved in `src/` as _.e.g._ `src/doubleMe.src, Install+Restart -- OK 3. Now delete the initial src/rcpp_hello_world.cpp, Install+Restart --> Link error Two runs of `compileAttributes()` fix it, but the IDE does not suggest it. Can we think of a heuristic to figure out when to run it twice?