traitecoevo / datastorr

Simple data versioning and distribution
https://docs.ropensci.org/datastorr
Other
67 stars 4 forks source link

pulling data from private repos #13

Open jsta opened 8 years ago

jsta commented 8 years ago

I am having trouble pulling data from private datastorr repos. My workflow is to:

The preceding steps run fine. I am able to create a new release in the private repo with the mydata.rds binary "attached".

This is where I start having trouble. Running datastorr.example::mydata("1.0.4") yields the following output:

Downloading: 93 kB
Error: key '1.0.4' ('objects') not found, with error: Downloading https://github.com/jsta/datastorr.example.private/releases/download/v1.0.4/mydata.rds failed with code 404

This is puzzling because datastorr is obviously not having trouble detecting my token and I verified that https://github.com/jsta/datastorr.example.private/releases/download/v1.0.4/mydata.rds exists (I can point my browser to it). I feel that something is off about the way datastorr is deciding whether or not to run token authentication. Unfortunately, I am having a tough time understanding/debugging the R6 objects in datastorr.

jsta commented 8 years ago

I think this might be a clue. Notice how even if I set private to TRUE, private == FALSE in the $info...

d <- datastorr::datastorr("jsta/datastorr.example.private", private = TRUE, extended = TRUE) d$info

$path [1] "/home/jose/.local/share/datastorr/jsta/datastorr.example.private"

$repo [1] "jsta/datastorr.example.private"

$private [1] FALSE

$filename NULL

$read function (file, refhook = NULL) { if (is.character(file)) { con <- gzfile(file, "rb") on.exit(close(con)) } else if (inherits(file, "connection")) con <- file else stop("bad 'file' argument") .Internal(unserializeFromConn(con, refhook)) } <bytecode: 0x4522ac8>

attr(,"class") [1] "github_release_info"