Skip to content

Commit

Permalink
Consistency changes (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten authored Feb 27, 2020
1 parent 9b83ba4 commit 10b8f3b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
sudo: required
dist: trusty
dist: xenial

language: python
python: "2.7"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Set up the latest version of R in Ubuntu systems.

#### Variables

* `r_version_35`: [default: `false`, for Ubuntu >= `18.04` always `true`]: Whether or not to install R 3.5
* `r_version_35`: [default: `false`, for `Ubuntu >= 18.04` always `true`]: Whether or not to install R 3.5+

* `r_cran_mirror`: [default: `https://cran.rstudio.com/`]: Your favorite [CRAN mirror](https://cran.r-project.org/mirrors.html)
* `r_bioclite_url`: [default: `https://bioconductor.org/biocLite.R`]: The `biocLite.R` script URL for [Bioconductor](https://bioconductor.org/) installs
Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# defaults file for r
---
r_version_35: "{{ ansible_distribution_version is version('18.04', '>=') }}"
r_version_35: "{{ (ansible_distribution == 'Ubuntu' and ansible_distribution_version is version('18.04', '>=')) }}"

r_cran_mirror: https://cran.rstudio.com/
r_bioclite_url: https://bioconductor.org/biocLite.R
Expand Down
2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
---
r_repository:
- type: deb
url: "{{ r_cran_mirror }}/bin/linux/ubuntu {{ ansible_distribution_release }}{{ r_version_35 | ternary('-cran35', '') }}/"
url: "{{ r_cran_mirror }}/bin/linux/{{ ansible_distribution | lower }} {{ ansible_distribution_release }}{{ r_version_35 | ternary('-cran35', '') }}/"

r_dependencies_dummy_package: apt
r_dependencies:
Expand Down

0 comments on commit 10b8f3b

Please sign in to comment.