# Building an R package with older R version (R 3.4)

**URL:** <https://travis-ci.community/t/building-an-r-package-with-older-r-version-r-3-4/5087>\
**Category:** Languages\
**Tags:** r\
**Created:** [September 13, 2019, 9:23am UTC](https://travis-ci.community/t/building-an-r-package-with-older-r-version-r-3-4/5087 "2019-09-13T09:23:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![symbioticMe](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@symbioticMe](https://travis-ci.community/u/symbioticMe)\
**Post date:** [September 13, 2019, 9:23am UTC](https://travis-ci.community/t/building-an-r-package-with-older-r-version-r-3-4/5087/1 "2019-09-13T09:23:27Z")

</div>

Due to compatibility with other package, that works as intended with R3.4, I’d like to build mine with the same R version.

I’ trying to specify R3.4 as follows:

> language: R  
> cache: packages
> 
> warnings\_are\_errors: false
> 
> matrix:
> 
> - 3.4

But the build still fails:  
[https://travis-ci.com/symbioticMe/proBatch/builds/127349915](https://travis-ci.com/symbioticMe/proBatch/builds/127349915)

---

<div class="post-metadata">

**Author:** ![native-api](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/native-api/32/430_2.png) [@native-api](https://travis-ci.community/u/native-api)\
**Post date:** [September 15, 2019, 8:26pm UTC](https://travis-ci.community/t/building-an-r-package-with-older-r-version-r-3-4/5087/2 "2019-09-15T20:26:09Z")

</div>

“3.4” should be under `r:`

```auto
r: 3.4

```

[https://docs.travis-ci.com/user/languages/r/#r-versions](https://docs.travis-ci.com/user/languages/r/#r-versions)
