I have an R packaged (p1) hosted on my company's GitLab. I am attempting to split out some of the more broadly applicable functions into a separate package (p2) so that they can be used in multiple places but only maintained in one place.

When installing p1 I will use the `devtools::install_gitlab` function, and specify my company's gitlab as the host. In order to include p2 I need to include its location in the Remotes section of the description file. On the face of it this is simple enough and I just need to include a line `Remotes: gitlab::myrepo/p2`. However, this assumes a host of gitlab.com and unsurprisingly doesn't find p2, but I can't find any documentation about how one sets a host for GitLab repositories in the Remotes section.

How do I make it so that p2 is automatically installed when p1 is?