everyone.
I am creating an R package to be installed from GitHub. My R package includes several RDS files, but two RDS files cause the following cryptic error when I try to install the package from GitHub:
Downloading GitHub repo <username>/<packagename>@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/<username>/<packagename>/tarball/HEAD' failed
I am on Ubuntu and using this code to install the package:
require(devtools)
install_github("<username>/<packagename>")
Most my RDS data loads fine, it's just two that cause the package to not be downloadable from GitHub.
Both of these files are larger -- just under ~100 MB each -- but I read elsewhere that this file size should be okay.
Given the vague language of this error, I have no idea where to start trouble shooting this problem and I am having trouble finding information online.
Your advice is very appreciated!!
Edit: I have more evidence to believe size is not the issue, but I am still undecided.
I used the tools::resaveRdaFiles()
to compress my large files to a small file size and they still cause the same error above.