Shiny server Install CentOS 8.1 build

Viewed 139

I am attempting to do a fresh build of a Shiny server, using CentOS 8. I have been using the instructions on the Shiny server download site. I have been successful up to the point of installing the Shiny R packages. Using the code on the website

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
1 Answers

Does this work?

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

It escapes the quotes inside quotes using \

Related