The gampls package depends on a suite of (fantastic) packages -- you can install them using:
install.packages(
c(
"inlabru",
"gratia",
"mgcv",
"pls"
)
)
Note that gampls is not (yet) on CRAN.
You can install the development version of gamplsusing the remotes package:
remotes::install_github("pierreroudier/gampls")