Install issues with shinystan with R

shinystan

#1

Hi there!

I was trying to install shinystan which gave me the error message

ERROR: configuration failed for package ‘RCurl’
* removing ‘/usr/local/lib/R/site-library/RCurl’
ERROR: dependency ‘RCurl’ is not available for package ‘rsconnect’
* removing ‘/usr/local/lib/R/site-library/rsconnect’
ERROR: dependency ‘rsconnect’ is not available for package ‘shinystan’
* removing ‘/usr/local/lib/R/site-library/shinystan’

I then tried to follow the instructions on https://github.com/stan-dev/shinystan/wiki/Installing-the-R-package but had the same problems. Even when trying to install the package devtools I got similar errors:

ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/usr/local/lib/R/site-library/httr’
ERROR: dependency ‘httr’ is not available for package ‘devtools’
* removing ‘/usr/local/lib/R/site-library/devtools’

I am on Ubuntu, using R version 3.4.1. Any ideas? If more info is needed, just let me know!


#2

You need to install libcurl4-openssl-dev .


#3

Oh great thank you! A simple

sudo apt-get install libcurl4-openssl-dev

solved the problem. Shinystan now installed!

edit: Can/Shall I somehow close threads which are answered here? I didn’t find the function yet.


#4

Click on the three grey dots on the bottom of the post with the solution (to the left of the “reply” button) and then click on the grey check box that appears.