src/
R/has_src.R
pkg_has_src.Rd
If it does, you definitely need build tools.
pkg_has_src(path = ".")
Path to package (or directory within package).