Hi,
I'm trying to publish my shiny application to shinyapps.io from my RStudio but getting error messages. The application is running fine in local environment. The errors are as given below -
checking for pkg-config... /usr/bin/pkg-config
checking if pkg-config knows NLopt... no
checking for cmake... no
------------------ CMAKE NOT FOUND --------------------
CMake was not found on the PATH. Please install CMake:
- sudo yum install cmake (Fedora/CentOS; inside a terminal)
- sudo apt install cmake (Debian/Ubuntu; inside a terminal).
- sudo pacman -S cmake (Arch Linux; inside a terminal).
- sudo brew install cmake (MacOS; inside a terminal with Homebrew)
- sudo port install cmake (MacOS; inside a terminal with MacPorts)
Alternatively install CMake from:
Warning: unknown option ‘--vanilla’
- installing to library ‘/opt/R/4.1.3/lib/R/library’
- installing source package ‘nloptr’ ...
** package ‘nloptr’ successfully unpacked and MD5 sums checked
** using staged installation
ERROR: configuration failed for package ‘nloptr’ - removing ‘/opt/R/4.1.3/lib/R/library/nloptr’
GET /v1/tasks/?filter=account_id:1384060&filter=parent_id:1153440027&count=100&offset=0 850ms
################################# End Task Log #################################
----- Deployment error -----
Error: Unhandled Exception: Child Task 1153440027 failed: Error building image: Error building nloptr (2.0.1). Build exited with non-zero status: 1
----- Error stack trace -----
4: rsconnect::deployApp(appDir = "D:/Personal/Coursera/Data Science Specialization/Developing Data Products/shiny_assignment",
appFileManifest = "C:/Users/Umeshm/AppData/Local/Temp/9463-3f50-a342-34df",
account = "moolchandani", server = "shinyapps.io", appName = "shiny_assignment",
...
3: client$waitForTask(taskId, quiet)
2: stop(status$error, call. = FALSE)
1: (function (e)
{
cat("----- Deployment error -----\n")
...
Error: Unhandled Exception: Child Task 1153440027 failed: Error building image: Error building nloptr (2.0.1). Build exited with non-zero status: 1
Execution halted
Please help me in resolving this issue.
Thanks.
Umesh Moolchandani