diff --git a/.travis.yml b/.travis.yml index e76cae1..f2c4647 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,9 +4,16 @@ language: r sudo: false cache: packages r: - - oldrel - - release - - devel + - 3.0.3 + - oldrel + - release + - devel + +before_install: + - if [[ "$TRAVIS_R_VERSION_STRING" = '3.0.3' ]]; then git clone https://github.com/hadley/devtools ~/devtools && pushd ~/devtools && git fetch origin pull/1388/head:3.0.3 && git checkout 3.0.3 && R CMD build . && R CMD INSTALL devtools*tar.gz && popd;fi + +install: + - R -e 'devtools::install_deps(dep = T)' after_success: - Rscript -e 'covr::codecov(line_exclusions = c("R/lazy.R", "R/lazy-as.R", "R/lazy-dots.R", "R/lazy-names.R", "R/lazy-call.R", "R/lazy-eval.R", "R/lazy-interp.R", "src/lazy.c"))' diff --git a/DESCRIPTION b/DESCRIPTION index 8f9680a..2951390 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: lazyeval -Version: 0.2.0.9000 +Version: 0.2.0.9001 Title: Lazy (Non-Standard) Evaluation Description: An alternative approach to non-standard evaluation using formulas. Provides a full implementation of LISP style 'quasiquotation', @@ -11,7 +11,7 @@ Authors@R: c( License: GPL-3 LazyData: true Depends: - R (>= 3.1.0) + R (>= 3.0.0) Suggests: knitr, rmarkdown (>= 0.2.65), diff --git a/src/name.c b/src/name.c index 0056de8..ad46d18 100644 --- a/src/name.c +++ b/src/name.c @@ -27,7 +27,7 @@ SEXP lhs_name(SEXP x) { Rf_errorcall(R_NilValue, "`x` must be a list (not a %s)", Rf_type2char(TYPEOF(x))); int n = Rf_length(x); - SEXP x2 = PROTECT(Rf_shallow_duplicate(x)); + SEXP x2 = PROTECT(Rf_duplicate(x)); SEXP names = Rf_getAttrib(x2, R_NamesSymbol); if (names == R_NilValue) {