Problems installing brms on ubuntu

I am having difficulty installing brms. I have rstan installed (2.17.1).

OS: Ubuntu 18.04.1 LTS

I am trying to install the latest development version of brms from github. I have the latest version of R (2.5.1) installed. The error messages:

devtools::install_github(“paul-buerkner/brms”)
Downloading GitHub repo paul-buerkner/brms@master
from URL https://api.github.com/repos/paul-buerkner/brms/zipball/master
Installing brms
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shinystan_2.5.0.tar.gz
Content type ‘application/x-gzip’ length 2400413 bytes (2.3 MB)
==================================================
downloaded 2.3 MB

Installing shinystan
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/colourpicker_1.0.tar.gz
Content type ‘application/x-gzip’ length 1897585 bytes (1.8 MB)

downloaded 1.8 MB

Installing colourpicker
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/miniUI_0.1.1.1.tar.gz
Content type ‘application/x-gzip’ length 97958 bytes (95 KB)

downloaded 95 KB

Installing miniUI
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shiny_1.1.0.tar.gz
Content type ‘application/x-gzip’ length 2350156 bytes (2.2 MB)

downloaded 2.2 MB

Installing shiny
‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
–quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools7575699e6277/shiny’
–library=‘/usr/local/lib/R/site-library’ --install-tests

  • installing source package ‘shiny’ …
    ** package ‘shiny’ successfully unpacked and MD5 sums checked
    ** R
    ** inst
    ** tests
    ** byte-compile and prepare package for lazy loading
    Error : package ‘mime’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
    ERROR: lazy loading failed for package ‘shiny’
  • removing ‘/usr/local/lib/R/site-library/shiny’
    Installation failed: Command failed (1)
    ‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
    –quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75751ddf83cd/miniUI’
    –library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘shiny’ is not available for package ‘miniUI’

Skipping shiny, it is already being installed.
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shinyjs_1.0.tar.gz
Content type ‘application/x-gzip’ length 954365 bytes (931 KB)

downloaded 931 KB

Installing shinyjs
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shiny_1.1.0.tar.gz
Content type ‘application/x-gzip’ length 2350156 bytes (2.2 MB)

downloaded 2.2 MB

Skipping shiny, it is already being installed.
‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
–quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75754e7ac20e/shinyjs’
–library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘shiny’ is not available for package ‘shinyjs’

  • removing ‘/usr/local/lib/R/site-library/shinyjs’
    Installation failed: Command failed (1)
    ‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
    –quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75753c15d059/colourpicker’
    –library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependencies ‘miniUI’, ‘shiny’, ‘shinyjs’ are not available for package ‘colourpicker’

  • removing ‘/usr/local/lib/R/site-library/colourpicker’
    Installation failed: Command failed (1)
    trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/DT_0.4.tar.gz
    Content type ‘application/x-gzip’ length 857807 bytes (837 KB)
    ==================================================
    downloaded 837 KB

Installing DT
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/crosstalk_1.0.0.tar.gz
Content type ‘application/x-gzip’ length 563474 bytes (550 KB)

downloaded 550 KB

Installing crosstalk
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shiny_1.1.0.tar.gz
Content type ‘application/x-gzip’ length 2350156 bytes (2.2 MB)

downloaded 2.2 MB

Skipping shiny, it is already being installed.
‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
–quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75755feed017/crosstalk’
–library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘shiny’ is not available for package ‘crosstalk’

  • removing ‘/usr/local/lib/R/site-library/crosstalk’
    Installation failed: Command failed (1)
    ‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
    –quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75759473599/DT’
    –library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘crosstalk’ is not available for package ‘DT’

Skipping shiny, it is already being installed.
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shinyjs_1.0.tar.gz
Content type ‘application/x-gzip’ length 954365 bytes (931 KB)

downloaded 931 KB

Skipping shinyjs, it is already being installed.
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shinythemes_1.1.1.tar.gz
Content type ‘application/x-gzip’ length 990752 bytes (967 KB)

downloaded 967 KB

Installing shinythemes
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/shiny_1.1.0.tar.gz
Content type ‘application/x-gzip’ length 2350156 bytes (2.2 MB)

downloaded 2.2 MB

Skipping shiny, it is already being installed.
‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
–quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75753c662917/shinythemes’
–library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘shiny’ is not available for package ‘shinythemes’

Installing threejs
trying URL ‘https://mirrors.nics.utk.edu/cran/src/contrib/crosstalk_1.0.0.tar.gz
Content type ‘application/x-gzip’ length 563474 bytes (550 KB)

downloaded 550 KB

Skipping crosstalk, it is already being installed.
‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
–quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools75752a0c0c24/threejs’
–library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘crosstalk’ is not available for package ‘threejs’

  • removing ‘/usr/local/lib/R/site-library/threejs’
    Installation failed: Command failed (1)
    ‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
    –quiet CMD INSTALL ‘/tmp/RtmpIu78M3/devtools757530742700/shinystan’
    –library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependencies ‘shiny’, ‘colourpicker’, ‘DT’, ‘shinyjs’, ‘shinythemes’, ‘threejs’ are not available for package ‘shinystan’

  • removing ‘/usr/local/lib/R/site-library/shinystan’
    Installation failed: Command failed (1)
    ‘/usr/local/lib/R/bin/R’ --no-site-file --no-environ --no-save --no-restore
    –quiet CMD INSTALL
    ‘/tmp/RtmpIu78M3/devtools7575459d3015/paul-buerkner-brms-d0554a1’
    –library=‘/usr/local/lib/R/site-library’ --install-tests

ERROR: dependency ‘shinystan’ is not available for package ‘brms’

  • removing ‘/usr/local/lib/R/site-library/brms’
    Installation failed: Command failed (1)

I would try installing mime from CRAN first. And possibly using a different / closer mirror.

Thanks. This worked, although this time I could not install the development version, but had to use install.packages.