BergelsonLab / BergelsonLab/blabr

check access to github

Open
#39 0 comments 0 reactions 1 assignee Claimed by @kalenkovich View on GitHub
Dominant language
R
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

If someone has a BLAB_DATA repository set to use ssh and their key is no longer valid, they'll get a very cryptic error:

![image](https://user-images.githubusercontent.com/9257050/231878753-58b2d3ab-f26b-4b8b-bf12-ad94dc3132ba.png)

The access error is also there but it doesn't cause an actual R error and instead causes a weird `strsplit` error.

How it should work:
- `blabr` looks for, e.g., `~/BLAB_DATA/cdi_spreadsheet`.
- If it doesn't exist, it should check whether an https request to github is possible.
- If it is, suggest cloning.
- If it isn't, say that it is BLab-only data.
- If it does exist, try whatever ssh/https uri was set up for the "origin" remote.
- If it works, continue.
- If it doesn't, suggest changing to https.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.