为新手准备的现代化 R 包开发流程
哇嗷,期待
每次更新一点内容就即使进行提交,以记录你的每一步变更
这里是不是“及时”
好像图片挂掉了
图片挂掉是因为国内吧,我在国内也看不到
图床用的是 GitHub 的所以国内可能看不到,不过可以看微信版的
https://mp.weixin.qq.com/s/Q_chMLju5YEIFncWJ2GFlw
作者你好,我想问一下,为什么我每次把本地的变更推送到云端(Push origin)都会报错啊, 错误信息显示:
fatal: unable to access 'https//github.com/lizhiwei1994/rPackageTutorial.git/': OpenSSL SSL_read:SSL_ERROR_SYSCALL, errnor 10054.
然后我从网上找到了一种解决方法如下:
打开git bash 窗口
$ git config --global http.proxy
$ git config --global --unset http.proxy
用这两行代码可以解决上边的报错,但是现在的问题是,每次 push origin都会报错,然后我每次都要在git bash里运行上边的代码,有没有其他的办法可以一次性解决这个问题啊。
谢谢!
- 已编辑
zovey_lee 没有碰到过这种情况,估计是国内访问GitHub的原因?或者是GFW的影响?
引用一个答案:https://stackoverflow.com/questions/56745021/failing-to-push-branch-to-git-getting-rpc-failed-errno-10054
The error number 10054 is WSAECONNRESET, which means the connection was reset by the peer. That basically means that either the remote server or something in between intentionally closed the connection in an abrupt way.
That means that it's possible GitHub closed the connection, but it's likely instead that it's a proxy, network filter (e.g. anti-porn filter), or antivirus program. If you have one or more of those enabled, try disabling them (or, for antivirus, removing it altogether, since disabling it is often not effective) or connecting from a different location. This is definitely a network problem, and it's something that exists between Git and GitHub in the network stack that is causing it.
InfinityLoop 感谢,已解决!
我还有一个问题,就是我在运行usethis::use_tidy_github_actions()
的时候,并没有出现文中的结果,而是:
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
是我哪里操作有问题吗?
zovey_lee 不是很明白你说的出现文中结果是什么意思。只弹出
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
- Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md
的意思吗?能告知你用的 {usethis}
版本嘛。我看了官方文档似乎没有什么相关的变更说明。
https://usethis.r-lib.org/reference/tidyverse.html#details
其实你想要什么流程只要按照 Learn more at https://github.com/r-lib/actions/blob/master/examples/README.md 中一样设置(复制粘贴)也可以办到的。
感谢分享
感谢分享!另外还想问一下想在包里添加内置数据集该怎么操作呢?看到有的教程说也要写帮助文档,有的却没提这个。