Ubuntu is a Debian derivative. While not interchangeable as binaries, compiling from source for the one work for the other except in some screwy cases. The main guy at
R core team, Dirk, uses it to compile all the repo's from source for his
r2u package, so if it works on Ubuntu \dots . The
CRAN guidelines have
Package authors should make all reasonable efforts to provide cross-platform portable code. Packages will not normally be accepted that do not run on at least two of the major R platforms.
Anyway rhub is likely to cover it.