It doesn't seem to be actually setting CPPFLAGS by simply depending on gettext.

Exporting CPPFLAGS is required to update /usr/local/Cellar/r/3.0.2/R.framework/Versions/3.0/Resources/etc/Makeconf when building packages.