简体   繁体   中英

Reading data from private repository

I have a group with two different private repositories and I want to read a file.Rdata from one of the repos.

I tried this. But is not working

library(repmis)

source_data("https://github.com/opetchey/RREEBES/raw/Beninca_development/Beninca_etal_2008_Nature/data/GLE_estimate.Rdata?raw=True")

//The url of the code above is an example, I put the url of my private repo.

If the repository is private, you will need some kind of authentication to access it.

Accessing the https url would probably require using a cookie, or some additional header. Look at the docs for your git library for http/https authentication.

You can also try to access it through ssh, which will most probably go through your system ssh settings, and for example use a configured ssh key for authentication.

Here are the github help pages for setting up ssh for github:

Connecting to Github with SSH

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM