首页 > 解决方案 > 闪亮的服务器安装 CentOS 8.1 构建

问题描述

我正在尝试使用 CentOS 8 重新构建 Shiny 服务器。我一直在使用 Shiny 服务器下载站点上的说明。我已经成功安装了 Shiny R 软件包。使用网站上的代码

sudo su -
-c "R -e "install.packages('shiny', repos='https://cran.rstudio.com/')"">
I am getting the following error/response: <[root@CP-Shiny]# sudo su - \ -c "R -e "install.packages('shiny', repos='https://cran.rstudio.com/')""
su: user -c does not exist

标签: rshinycentos8

解决方案


这行得通吗?

sudo su - -c "R -e \"install.packages('shiny', repos='https://cran.rstudio.com/')\""

它使用转义引号内的引号\


推荐阅读