Unable to install package 'av'

Unable to install the package 'av' within rstudio cloud

Installing package into ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0’
(as ‘lib’ is unspecified)
trying URL 'http://package-proxy/src/contrib/av_0.5.1.tar.gz'
Content type 'application/x-gzip' length 753168 bytes (735 KB)
downloaded 735 KB

  • installing source package ‘av’ ...
    ** package ‘av’ successfully unpacked and MD5 sums checked
    ** using staged installation
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lavfilter
    -----------------------------[ ANTICONF ]----------------------------------
    Configuration failed to find the libavfilter library. Try installing:
  • deb: libavfilter-dev (Debian, Ubuntu 18.04 and up)
  • rpm: ffmpeg-devel (https://rpmfusion.org) (Fedora, CentOS, RHEL)
  • csw: ffmpeg_dev (Solaris)
  • brew: ffmpeg (MacOS)
    For Ubuntu Trusty (14.04) and Xenial (16.04) use this PPA:
    sudo add-apt-repository -y ppa:cran/ffmpeg-3
    sudo apt-get update
    sudo apt-get install -y libavfilter-dev
    If libavfilter is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a libavfilter.pc file. If pkg-config
    is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
    ---------------------------[ ERROR MESSAGE ]--------------------------------
    :1:33: fatal error: libavfilter/version.h: No such file or directory
    compilation terminated.

ERROR: configuration failed for package ‘av’

  • removing ‘/home/rstudio-user/R/x86_64-pc-linux-gnu-library/4.0/av’
    Warning in install.packages :
    installation of package ‘av’ had non-zero exit status

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.


Yesterday RStudio Cloud was updated so new projects will use Ubuntu 20.04. This update fixes the issues with installing the 'av' package. If you create a new project and try again, you should have better luck. (Note: existing projects will still use Ubuntu 16.04 so you will need to create a new project to see this.)