Error in .shlib_internal(args) : C++17 standard requested but CXX17 is not defined

OK Finally figured it out. Thanks for your help.

# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
cache: packages

before_install:
  - mkdir -p ~/.R
  - echo 'CXX17 = g++-7 -std=gnu++17 -fPIC' > ~/.R/Makevars

addons:
  apt:
    sources:
      - sourceline: 'ppa:ubuntu-toolchain-r/test'
    packages:
      - g++-7

after_success:
  - Rscript -e 'covr::codecov()'
2 Likes