1
0
mirror of https://github.com/msberends/AMR.git synced 2024-12-26 06:06:12 +01:00

Try to support older R versions

This commit is contained in:
dr. M.S. (Matthijs) Berends 2018-04-18 15:41:27 +02:00
parent 4b5530ed64
commit d79132b29f
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,9 @@
# Setting up R deps
language: r
r: 3.1
r:
- 3.1
- 3.2
r_packages: covr
cache: packages
@ -14,6 +16,7 @@ before_install:
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get -qq update; fi
- if [ $TRAVIS_OS_NAME = linux ]; then sudo apt-get install -y xclip; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install xclip; fi
- if [ $TRAVIS_OS_NAME = osx ]; then brew install r@3.1.3; fi
# postrun
after_success:

View File

@ -161,7 +161,7 @@ freq <- function(x,
}
if (mult.columns > 1) {
NAs <- x[is.na(x) | x == trimws(strrep('NA ', mult.columns))]
NAs <- x[is.na(x) | x == trimws(AMR:::strrep('NA ', mult.columns))]
} else {
NAs <- x[is.na(x)]
}