I have used RStudio on Ubuntu 18.04 to create an hello world R package using Rcpp like described here in Rcpp Package Development:
My ~/.R/Makevars contain
~/.R/Makevars
(gdb) p R_PV(x)
In my R source, R_PV is a function returning void. Try this instead:
R
R_PV
void
(gdb) call R_PV(x)
As Dirk Eddelbuettel noted, you still need to pass the right type to R_PV, so perhaps the correct command is:
(gdb) call R_PV(Rcpp::wrap(&x))