r-lib / remotes

Install R packages from GitHub, GitLab, Bitbucket, git, svn repositories, URLs
https://remotes.r-lib.org/
Other
330 stars 152 forks source link

Error: Unknown remote type: `git` for public repo on enterprise gitlab #738

Open isaactpetersen opened 1 year ago

isaactpetersen commented 1 year ago

When using GitHub actions, I receive the following error when trying to use the {remotes} package install a package from a public repo that is located on an enterprise GitLab instance:

Unknown remote type(s): `git`

I have tried each of the following in the DESCRIPTION file and still get the error (or a similar variant):

Remotes:
  git::git@research-git.uiowa.edu:PetersenLab/petersenlab.git
Remotes:
  https://research-git.uiowa.edu/PetersenLab/petersenlab.git
Remotes:
  gitlab::git@research-git.uiowa.edu:PetersenLab/petersenlab.git

I'd prefer not to have to use the URL of the .zip file, but I get an error when using that, as well (even though I have the package digest listed in Imports:):

Remotes:
  url::https://research-git.uiowa.edu/PetersenLab/petersenlab/-/archive/master/petersenlab-master.zip
Cannot install packages:
  * deps::.: there is no package called ‘digest’

Here is the link to the public repo of the remote package that I want to install: https://research-git.uiowa.edu/PetersenLab/petersenlab

The issue appears similar to the one here: https://github.com/r-lib/remotes/issues/140

gaborcsardi commented 10 months ago

This should work much better with the pak package, I suggest you try that.