install.packages('sf') fails because it can't find proj_api.h or proj.h

See this thread.