【发布时间】:2020-12-03 17:53:09
【问题描述】:
我正在尝试从我自己的存储库中安装一个包,以测试这些功能是否有效。存储库的链接在这里:https://github.com/hharder74/SampleMeansII。当我尝试使用以下代码安装它时:
devtools::install_github("hharder74/SampleMeansII")
我收到以下错误:
Error: Failed to install 'unknown package' from GitHub: HTTP error 404. Not Found Did you spell the repo owner (`hharder74`) and repo name (`SampleMeansII`) correctly? - If spelling is correct, check that you have the required permissions to access the repo.
我真的很困惑这个错误来自哪里。这是我第一次尝试将包上传到GitHub,我只是想在将包交给老师之前检查一下是否可以安装包。如果有人需要,这里有一些测试功能的代码:
vec <- runif(100)
sample_mean(vec, 50)
many_sample_means(vec, reps = 10, n = 50)
sample_means_ns(vec, reps = 10, ns = c(5, 50, 500))
【问题讨论】:
标签: r github installation package