简体   繁体   English

r shiny rsconnect直接上传失败,缺少PKI包记录

[英]r shiny rsconnect direct upload fails with missing PKI package records

I have a shiny app running locally. 我有一个在本地运行的闪亮应用程序 I want to upload the files to the shiny server with rsconnect. 我想用rsconnect将文件上传到闪亮的服务器。 Here's the code I use (with tokens and secrets xxxed out) 这是我使用的代码(带有令牌和秘密xxxed)

    rsconnect::setAccountInfo(name = 'nutrientmodeling',
                               token = 'xxx',
                               secret = 'xxx/')
rsconnect::deployApp(appDir = paste(getwd(),"nutrientModeling", sep = "/"))

I have rsconnect 0.7 and PKI version 0.1-5 installed. 我安装了rsconnect 0.7和PKI版本0.1-5。 PKI was installed from a downloaded version with PKI是从下载的版本安装的

install.packages("PKI_0.1-5.tar.gz", repos = NULL, type="source")

that downloads the openssl headers. 下载openssl标头。

When I run the code above, I get the following error message. 当我运行上面的代码时,我收到以下错误消息。

Error : Unable to retrieve package records for the following packages:
- 'PKI'

What do I need to change for rsconnect to find these records? 我需要更改rsconnect才能找到这些记录?

An update to version 0.8 of rsconnect and a new version of PKI solved the problem. 对rsconnect 0.8版本的更新和新版本的PKI解决了这个问题。 The new version of rsconnect is on CRAN but the new version of PKI is currently only on GitHub. rsconnect的新版本在CRAN上,但新版本的PKI目前仅在GitHub上。 Here's how to get it - install_github("su/PKI") . 以下是如何获取它 - install_github("su/PKI") I 'think' it has the same version number as the PKI version on CRAN, which doesn't install, at least for me on my Mac. 我认为'它与CRAN上的PKI版本具有相同的版本号,它不能安装,至少在我的Mac上是这样。

This latest version gets the Apple openssl headers and puts them someplace where PKI can find them and rsconnect can then find the PKI package records. 这个最新版本获取了Apple openssl标头,并将它们放置在PKI可以找到它们的位置,然后rsconnect可以找到PKI包记录。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM