From 7d9260b16345c2ecc798e21a1e02191b1b57a6d2 Mon Sep 17 00:00:00 2001 From: cgao90 Date: Tue, 9 Mar 2021 14:52:36 -0500 Subject: [PATCH] fix testthat.R, enables appveyor, and update Version to 1.0.0 --- DESCRIPTION | 4 ++-- appveyor.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++ tests/testthat.R | 4 ++-- 3 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 appveyor.yml diff --git a/DESCRIPTION b/DESCRIPTION index 106dc06f..28157e21 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: rliger -Version: 0.5.0 -Date: 2021-01-18 +Version: 1.0.0 +Date: 2021-03-09 Type: Package Title: Linked Inference of Genomic Experimental Relationships Description: Uses an extension of nonnegative matrix factorization to identify shared and dataset-specific factors. See Welch J, Kozareva V, et al (2019) , and Liu J, Gao C, Sodicoff J, et al (2020) for more details. diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 00000000..81686c4b --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,50 @@ +# DO NOT CHANGE the "init" and "install" sections below + +# Download script file from GitHub +init: + ps: | + $ErrorActionPreference = "Stop" + Invoke-WebRequest http://raw.github.com/krlmlr/r-appveyor/master/scripts/appveyor-tool.ps1 -OutFile "..\appveyor-tool.ps1" + Import-Module '..\appveyor-tool.ps1' +install: + - ps: Bootstrap + +# Adapt as necessary starting from here + +environment: + global: + R_ARCH: x64 + USE_RTOOLS: true + BIOC_USE_DEVEL: "FALSE" + _R_CHECK_FORCE_SUGGESTS_: false + CRAN: "https://cloud.r-project.org" + +build_script: + - travis-tool.sh install_deps + - travis-tool.sh bioc_install S4Vectors + +test_script: + - travis-tool.sh run_tests + +on_failure: + - 7z a failure.zip *.Rcheck\* + - appveyor PushArtifact failure.zip + +artifacts: + - path: '*.Rcheck\**\*.log' + name: Logs + + - path: '*.Rcheck\**\*.out' + name: Logs + + - path: '*.Rcheck\**\*.fail' + name: Logs + + - path: '*.Rcheck\**\*.Rout' + name: Logs + + - path: '\*_*.tar.gz' + name: Bits + + - path: '\*_*.zip' + name: Bits diff --git a/tests/testthat.R b/tests/testthat.R index 65213bbd..692b1ff5 100644 --- a/tests/testthat.R +++ b/tests/testthat.R @@ -1,4 +1,4 @@ library(testthat) -library(liger) +library(rliger) -test_check("liger") +test_check("rliger")