det
det

Reputation: 5232

Installing gitlab packages

I have 2 R packages on gitlab, and 2nd package has 1st as dependency. This is making my script which installs all required packages to fail:

remotes::install_gitlab(
  "username/package1",
  host = "gitlab.com",
  auth_token = gitlab_token
)

remotes::install_gitlab(
  "username/package2",
  host = "gitlab.com",
  auth_token = gitlab_token,
)

Solution which works is to install all other dependency packages for 2nd package before installing it and put dependencies=FALSE:

remotes::install_gitlab(
  "username/package1",
  host = "gitlab.com",
  auth_token = gitlab_token
)

install.packages(all dependencies for 2nd package except 1st package)

remotes::install_gitlab(
  "username/package2",
  host = "gitlab.com",
  auth_token = gitlab_token,
  dependencies = FALSE
)

Is there any other way without 'manually' installing all other required pacakges before installing 2nd package like:

 remotes::install_gitlab(
    c("username/package1", "username/package2"),
    host = "gitlab.com",
    auth_token = gitlab_token
 )

Upvotes: 1

Views: 205

Answers (0)

Related Questions