benmarwick/rrtools

use GitLab

januz opened this issue · 2 comments

januz commented

Are there any plans to enable users to use GitLab and its CI service instead of GitHub and Travis/CircleCI? That would be fantastic as one could use (unlimited) private repositories.

If you don't plan on extending the package, do you have suggestions on how one could integrate GitLab plus CI into the rrtools workflow? Thanks!

Yes, sure, that would be great to have. The current plan is to wait until the usethis package has functions to work with GitLab, and then update rrtools with that option. It does seem to be on their list of things to do: r-lib/usethis#225

There is a gitlabr pkg which may be relevant, but I haven't tried it at all.

In the meantime, my suggestion to integrate rrtools with GitLab would be to use git commit/push/pull from the terminal in RStudio (rather than the R code functions from usethis), and set the git repository URL to your gitlab repo rather than your github repo.

The main difference at the setup will be to skip usethis::use_github(auth_token = "xxxx", protocol = "https", private = FALSE) and instead go to the terminal to set the remote to your gitlab URL and commit/push/pull from the terminal.

But maybe @nevrome and @MartinHinz have some better suggestions about this?

januz commented

In the meantime, my suggestion to integrate rrtools with GitLab would be to use git commit/push/pull from the terminal in RStudio (rather than the R code functions from usethis), and set the git repository URL to your gitlab repo rather than your github repo.

The main difference at the setup will be to skip usethis::use_github(auth_token = "xxxx", protocol = "https", private = FALSE) and instead go to the terminal to set the remote to your gitlab URL and commit/push/pull from the terminal.

Ah, great, that's easy enough. I prefer to use an external git client (GitKraken) to manage my repositories either way. I just expected that there was some kind of deeper integration between rrtools functions and the hosting service going on. Thank you for your help!