r - 为什么 runGitHub 在我的公共 github 存储库中抛出一个错误,其中包含一个工作的 shinyapp?
问题描述
我在公共 Github 存储库上发布了一个可用的闪亮应用程序(今天):我尝试了下面的行从脚本运行应用程序,但收到以下错误。
shiny::runGitHub(repo = "<repo>",
username = "<username>")
# I have also tried:
# shiny::runGitHub(repo = "<username>/<repo>")
Downloading https://github.com/<username>/<repo>/archive/master.tar.gz
Error in utils::download.file(url, method = method, ...) :
cannot open URL 'https://github.com/<username>/<repo>/archive/master.tar.gz'
任何想法为什么会发生这种情况?
解决方案
有效的解决方案来自这里:
https ://community.rstudio.com/t/run-shiny-app-from-github-repository/89839
关键是参数ref="main"
shiny::runGitHub(repo = "<repo>",username = "<username >",ref="main")
推荐阅读
- sql - SQL查询从1个表中选择并基于2列返回数据
- c - 为 C 程序指定在同一库中打开 Python 程序的路径的好方法是什么?
- c# - WPF XAML - 文本框的设计时间和可见性
- image - 矩阵的字典排序
- r - 从数据框中计算相似发音词的数量和名称
- reactjs - 如何在 React Native 中打开新屏幕
- python - 使用 MingW 在 Windows 上发布 PyGObject/GTK+ 应用程序
- c++ - 为什么我们需要关闭一个文件来完成一个文件的写入过程?
- django - 试图让 log_error 装饰器在 Django 中工作,但得到元组错误
- python - 使用 Open CV 从线条中提取消失点