benmarwick / rrtools

rrtools: Tools for Writing Reproducible Research in R
Other
670 stars 85 forks source link

use GitLab #69

Closed januz closed 5 years ago

januz commented 5 years ago

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!

benmarwick commented 5 years ago

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: https://github.com/r-lib/usethis/issues/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 5 years ago

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!