From dfd6488ca54849635dcd812c101a9104bb3b5a75 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 15:22:26 -0400 Subject: [PATCH 01/14] added the readme Rmd for building and Travis --- .Rbuildignore | 5 +++ .gitignore | 1 + .travis.yml | 5 +++ RBioFormats.Rproj | 21 ++++++++++ README.Rmd | 99 +++++++++++++++++++++++++++++++++++++++++++++++ README.md | 74 ++++++++++++++++++++++++----------- appveyor.yml | 45 +++++++++++++++++++++ 7 files changed, 228 insertions(+), 22 deletions(-) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 RBioFormats.Rproj create mode 100644 README.Rmd create mode 100644 appveyor.yml diff --git a/.Rbuildignore b/.Rbuildignore index 5e212db..5912f38 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1 +1,6 @@ +^README\.Rmd$ +^appveyor\.yml$ +^\.travis\.yml$ +^RBioFormats\.Rproj$ +^\.Rproj\.user$ ^man-roxygen$ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..26e3515 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.Rproj.user \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8d139ac --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r + +language: R +sudo: false +cache: packages diff --git a/RBioFormats.Rproj b/RBioFormats.Rproj new file mode 100644 index 0000000..30e02be --- /dev/null +++ b/RBioFormats.Rproj @@ -0,0 +1,21 @@ +Version: 1.0 + +RestoreWorkspace: No +SaveWorkspace: No +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: knitr +LaTeX: pdfLaTeX + +AutoAppendNewline: Yes +StripTrailingWhitespace: Yes + +BuildType: Package +PackageUseDevtools: Yes +PackageInstallArgs: --no-multiarch --with-keep.source +PackageRoxygenize: rd,collate,namespace diff --git a/README.Rmd b/README.Rmd new file mode 100644 index 0000000..1f03356 --- /dev/null +++ b/README.Rmd @@ -0,0 +1,99 @@ +--- +output: github_document +--- + + + +```{r setup, include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>", + fig.path = "man/figures/README-", + out.width = "100%" +) +``` + +```{r, include=FALSE} +if (requireNamespace("git2r")) { + repo = git2r::repository(".") + url = git2r::remote_url(repo, remote = "origin") + gh_user = basename(dirname(url)) + gh_package = basename(url) +} else { + gh_user = "aoles" + gh_package = "RBioFormats" +} +``` + +[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/`r gh_user`/`r gh_package`.svg?branch=master&svg=true)](https://ci.appveyor.com/project/`r gh_user`/`r gh_package`) +[![Travis build status](https://travis-ci.com/`r gh_user`/`r gh_package`.svg?branch=master)](https://travis-ci.com/`r gh_user`/`r gh_package`) + +## Installation + +First, make sure you have [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) 1.7 or higher installed. +To install *RBioFormats* use the `biocLite` installation script in order to resolve the dependency on the Bioconductor package *[EBImage](http://biocondcutor.org/packages/EBImage)*. + +```r +source("https://bioconductor.org/biocLite.R") +biocLite("aoles/RBioFormats") # You might need to first run `install.packages("devtools")` +``` + +### Mac OS X + +Mac OS comes with a legacy Apple Java 6. In order to use *RBioFormats*, you will need to update your Java installation to a newer version provided by Oracle. + +1. Install [Oracle JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html). + +2. Update R Java configuration by executing from the command line (you might have to run it as a super user by prepending `sudo` depending on your installation). +``` +R CMD javareconf +``` + +3. Re-install *rJava* from sources in order to properly link to the non-system +Java installation. +```r +install.packages("rJava", type="source") +``` + +You can verify your configuration by running the following commands. This should return the Java version string corresponding to the one downloaded and installed in step 1. + +```r +library(rJava) +.jinit() +.jcall("java/lang/System", "S", "getProperty", "java.runtime.version") +## [1] "1.8.0_112-b16" +``` + +## Documentation + +For example use, see the [package vignette](https://rawgit.com/aoles/RBioFormats/master/vignettes/RBioFormats.html). + +## FAQ + +See my [answers on Stack Overflow](http://stackoverflow.com/search?q=user:A2792099+rbioformats). + +## Caveats + +### The `java.lang.OutOfMemoryError` error + +If you get the `java.lang.OutOfMemoryError: Java heap space` error, try increasing the maximum heap size by supplying the -Xmx parameter before the Java Virtual Machine is initialized. For example, use + +```r +options( java.parameters = "-Xmx4g" ) +library( "RBioFormats" ) +``` + +to override the default setting and assign 4 gigabytes of heap space to the Java environment. + +Information about the current Java heap space limit can be retrieved by `checkJavaMemory()`. + +### Use with BiocParallel + +Each R process needs a separate JVM instance. For this, load the package in the parallelized function, e.g., + +```r +bplapply (files, function(f) { + library(RBioFormats) + ... +}) +``` diff --git a/README.md b/README.md index 210e293..fe3d90c 100644 --- a/README.md +++ b/README.md @@ -1,33 +1,56 @@ + + + +[![AppVeyor build +status](https://ci.appveyor.com/api/projects/status/github/muschellij2/RBioFormats.svg?branch=master&svg=true)](https://ci.appveyor.com/project/muschellij2/RBioFormats) +[![Travis build +status](https://travis-ci.com/muschellij2/RBioFormats.svg?branch=master)](https://travis-ci.com/muschellij2/RBioFormats) + ## Installation -First, make sure you have [JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) 1.7 or higher installed. -To install *RBioFormats* use the `biocLite` installation script in order to resolve the dependency on the Bioconductor package *[EBImage](http://biocondcutor.org/packages/EBImage)*. +First, make sure you have +[JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html) +1.7 or higher installed. To install *RBioFormats* use the `biocLite` +installation script in order to resolve the dependency on the +Bioconductor package +*[EBImage](http://biocondcutor.org/packages/EBImage)*. -```r +``` r source("https://bioconductor.org/biocLite.R") biocLite("aoles/RBioFormats") # You might need to first run `install.packages("devtools")` ``` ### Mac OS X -Mac OS comes with a legacy Apple Java 6. In order to use *RBioFormats*, you will need to update your Java installation to a newer version provided by Oracle. +Mac OS comes with a legacy Apple Java 6. In order to use *RBioFormats*, +you will need to update your Java installation to a newer version +provided by Oracle. -1. Install [Oracle JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html). +1. Install [Oracle + JDK](http://www.oracle.com/technetwork/java/javase/downloads/index.html). -2. Update R Java configuration by executing from the command line (you might have to run it as a super user by prepending `sudo` depending on your installation). -``` -R CMD javareconf -``` +2. Update R Java configuration by executing from the command line (you + might have to run it as a super user by prepending `sudo` depending + on your installation). + + + + R CMD javareconf + +3. Re-install *rJava* from sources in order to properly link to the + non-system Java installation. + + -3. Re-install *rJava* from sources in order to properly link to the non-system -Java installation. -```r +``` r install.packages("rJava", type="source") ``` -You can verify your configuration by running the following commands. This should return the Java version string corresponding to the one downloaded and installed in step 1. +You can verify your configuration by running the following commands. +This should return the Java version string corresponding to the one +downloaded and installed in step 1. -```r +``` r library(rJava) .jinit() .jcall("java/lang/System", "S", "getProperty", "java.runtime.version") @@ -36,32 +59,39 @@ library(rJava) ## Documentation -For example use, see the [package vignette](https://rawgit.com/aoles/RBioFormats/master/vignettes/RBioFormats.html). +For example use, see the [package +vignette](https://rawgit.com/aoles/RBioFormats/master/vignettes/RBioFormats.html). ## FAQ -See my [answers on Stack Overflow](http://stackoverflow.com/search?q=user:A2792099+rbioformats). +See my [answers on Stack +Overflow](http://stackoverflow.com/search?q=user:A2792099+rbioformats). ## Caveats ### The `java.lang.OutOfMemoryError` error -If you get the `java.lang.OutOfMemoryError: Java heap space` error, try increasing the maximum heap size by supplying the -Xmx parameter before the Java Virtual Machine is initialized. For example, use +If you get the `java.lang.OutOfMemoryError: Java heap space` error, try +increasing the maximum heap size by supplying the -Xmx parameter before +the Java Virtual Machine is initialized. For example, use -```r +``` r options( java.parameters = "-Xmx4g" ) library( "RBioFormats" ) ``` -to override the default setting and assign 4 gigabytes of heap space to the Java environment. +to override the default setting and assign 4 gigabytes of heap space to +the Java environment. -Information about the current Java heap space limit can be retrieved by `checkJavaMemory()`. +Information about the current Java heap space limit can be retrieved by +`checkJavaMemory()`. ### Use with BiocParallel -Each R process needs a separate JVM instance. For this, load the package in the parallelized function, e.g., +Each R process needs a separate JVM instance. For this, load the package +in the parallelized function, e.g., -```r +``` r bplapply (files, function(f) { library(RBioFormats) ... diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..c6c1438 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,45 @@ +# 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 + +cache: + - C:\RLibrary + +# Adapt as necessary starting from here + +build_script: + - travis-tool.sh install_deps + +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 From 951a49109da4ae18fb01c6bbd59aadf1365772f2 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 15:34:49 -0400 Subject: [PATCH 02/14] added bioc --- .travis.yml | 4 ++++ DESCRIPTION | 7 +++++-- RBioFormats.Rproj | 1 + man/read.metadata.Rd | 3 ++- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8d139ac..834dd21 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,3 +3,7 @@ language: R sudo: false cache: packages +warnings_are_errors: true +use_bioc: true +bioc_required: true +cran: http://cran.rstudio.com diff --git a/DESCRIPTION b/DESCRIPTION index 548ebdc..3177e14 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -2,7 +2,8 @@ Package: RBioFormats Version: 0.0.53 BioFormats: 5.9.2 Title: R interface to Bio-Formats -Description: An R package which interfaces the OME Bio-Formats Java library to +Description: An R package which interfaces the OME Bio-Formats + Java library to allow reading of proprietary image data and metadata. Encoding: UTF-8 Author: Andrzej OleÅ› @@ -34,4 +35,6 @@ Collate: 'utils.R' 'write.image.R' 'zzz.R' -RoxygenNote: 6.0.1 +RoxygenNote: 6.1.0 +BugReports: https://github.com/aoles/RBioFormats/issues +URL: https://github.com/aoles/RBioFormats diff --git a/RBioFormats.Rproj b/RBioFormats.Rproj index 30e02be..64565bc 100644 --- a/RBioFormats.Rproj +++ b/RBioFormats.Rproj @@ -18,4 +18,5 @@ StripTrailingWhitespace: Yes BuildType: Package PackageUseDevtools: Yes PackageInstallArgs: --no-multiarch --with-keep.source +PackageCheckArgs: --as-cran PackageRoxygenize: rd,collate,namespace diff --git a/man/read.metadata.Rd b/man/read.metadata.Rd index 4fc285c..181da32 100644 --- a/man/read.metadata.Rd +++ b/man/read.metadata.Rd @@ -4,7 +4,8 @@ \alias{read.metadata} \title{Read Image Metadata} \usage{ -read.metadata(file, filter.metadata = FALSE, proprietary.metadata = TRUE) +read.metadata(file, filter.metadata = FALSE, + proprietary.metadata = TRUE) } \arguments{ \item{file}{character, file name} From 2e53e06a4dbeac29c41d7d16ae1b4daf95483c0f Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 15:47:27 -0400 Subject: [PATCH 03/14] added DESC --- DESCRIPTION | 1 + 1 file changed, 1 insertion(+) diff --git a/DESCRIPTION b/DESCRIPTION index 3177e14..5f57191 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -35,6 +35,7 @@ Collate: 'utils.R' 'write.image.R' 'zzz.R' +biocViews: RoxygenNote: 6.1.0 BugReports: https://github.com/aoles/RBioFormats/issues URL: https://github.com/aoles/RBioFormats From 298f449fef3a11ae1329ff3f418bb6dd7e605dd2 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 16:34:20 -0400 Subject: [PATCH 04/14] fixed note for onload --- .Rbuildignore | 2 ++ .gitignore | 3 ++- R/zzz.R | 45 +++++++++++++++++++++++++-------------------- cleanup | 2 ++ 4 files changed, 31 insertions(+), 21 deletions(-) create mode 100755 cleanup diff --git a/.Rbuildignore b/.Rbuildignore index 5912f38..b44d8ca 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -1,3 +1,5 @@ +^\.Rhistory$ +^misc$ ^README\.Rmd$ ^appveyor\.yml$ ^\.travis\.yml$ diff --git a/.gitignore b/.gitignore index 26e3515..2e6adc6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -.Rproj.user \ No newline at end of file +.Rhistory +.Rproj.user diff --git a/R/zzz.R b/R/zzz.R index d36515e..0315c92 100644 --- a/R/zzz.R +++ b/R/zzz.R @@ -1,51 +1,56 @@ +.onAttach <- function(lib, pkg) { + + + msg <- sprintf("BioFormats library version %s", BioFormats.version()) + packageStartupMessage(msg) + +} + .onLoad <- function(lib, pkg) { + ## check whether called on a source package directory which has a different ## path to .jar files compared to the installed package (this workaround is ## needed, e.g., to run devtools::test) pkg_dir <- file.path(lib, pkg) installed <- getwd() != pkg_dir - + jar_dir <- if (installed) file.path(pkg_dir, "java") - else - jar_dir = file.path(pkg_dir, "inst", "java") - + else + jar_dir = file.path(pkg_dir, "inst", "java") + tryCatch(download_bioformats(pkg_dir, jar_dir), - error = function(e) + error = function(e) stop("failed to download Bio-Formats Java library.\n Check your internet connection and try again.", call.=FALSE) - ) - + ) + jars = if (installed) - "" - else - list.files(jar_dir, pattern = ".*\\.jar", full.names = TRUE) - + "" + else + list.files(jar_dir, pattern = ".*\\.jar", full.names = TRUE) + .jpackage(pkg, lib.loc = lib, morePaths = jars) - - msg <- sprintf("BioFormats library version %s", BioFormats.version()) - packageStartupMessage(msg) - FormatTools <<- J("loci.formats.FormatTools") } download_bioformats <- function (pkg_dir, jar_dir) { - ver <- read.dcf(file.path(pkg_dir, "DESCRIPTION"), "BioFormats") + ver <- read.dcf(file.path(pkg_dir, "DESCRIPTION"), fields = "BioFormats") jar <- "bioformats_package.jar" url_template <- "https://downloads.openmicroscopy.org/bio-formats/%s/artifacts/%s" jar_url <- sprintf(url_template, ver, jar) jar_dst <- file.path(jar_dir, jar) - + if ( file.exists(jar_dst) ) { md5_local <- tools::md5sum(jar_dst) md5_file <- readLines(paste(jar_url, "md5", sep=".")) - md5_remote <- sub("([0-9a-z]+).*", "\\1", md5_file) + md5_remote <- sub("([0-9a-z]+).*", "\\1", md5_file) if ( md5_local == md5_remote ) return(FALSE) } - + utils::download.file(jar_url, jar_dst, quiet=FALSE) - + return(TRUE) } diff --git a/cleanup b/cleanup new file mode 100755 index 0000000..8c6b608 --- /dev/null +++ b/cleanup @@ -0,0 +1,2 @@ +#!/bin/bash +rm -rf inst/bioformats_package.jar \ No newline at end of file From 092fbabbfe18fe725d49fe219c187440c1689713 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 16:34:53 -0400 Subject: [PATCH 05/14] fixing cleanup again --- cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cleanup b/cleanup index 8c6b608..64fc02a 100755 --- a/cleanup +++ b/cleanup @@ -1,2 +1,2 @@ #!/bin/bash -rm -rf inst/bioformats_package.jar \ No newline at end of file +rm -rf inst/java/bioformats_package.jar \ No newline at end of file From 6c29a5c72917eb2a24123269f8d2a8ce5de0aa1b Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 16:49:00 -0400 Subject: [PATCH 06/14] fixing gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 2e6adc6..535bfd1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +inst/java/bioformats_package.jar .Rhistory .Rproj.user From bab180e61898ca4a4ad4ff96c07a46c94a862b8c Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 17:21:10 -0400 Subject: [PATCH 07/14] fixing travis --- .travis.yml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/.travis.yml b/.travis.yml index 834dd21..49f9595 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,48 @@ warnings_are_errors: true use_bioc: true bioc_required: true cran: http://cran.rstudio.com + +addons: + apt: + packages: + - libfftw3-dev + - libgsl0-dev + - libgsl0ldbl + +os: + - linux + - osx +osx_image: xcode9 + + +env: + global: + - RGL_USE_NULL=TRUE + - DISPLAY=:99.0 +r_check_args: --as-cran --install-args=--build + +before_install: + - export PROJ_DIR=`basename $PWD` + - fname=travis_helpers.sh + - wget -O ${fname} http://bit.ly/travis_helpers + - cat ${fname}; source ${fname}; rm ${fname} + - cat DESCRIPTION + - start_xvfb ; + - export rver=`r_version`; echo $rver ; + - if [ "$TRAVIS_OS_NAME" = "osx" ]; + then + no_open_mp ; + fi + - jags_install + - export PACKAGE_NAME=`package_name` + - echo "Package Name is $PACKAGE_NAME" + - fftw_install ; + +after_success: + - cat ${PACKAGE_NAME}.Rcheck/00install.out + - cat ${PACKAGE_NAME}.Rcheck/00check.log + +after_failure: + - cat ${PACKAGE_NAME}.Rcheck/00install.out + - cat ${PACKAGE_NAME}.Rcheck/00check.log + From e0428d625e82ae568a0c518b04ef3f8462b022a8 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Wed, 31 Oct 2018 17:23:03 -0400 Subject: [PATCH 08/14] added to appveyor out --- appveyor.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index c6c1438..5907fb2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,13 @@ install: cache: - C:\RLibrary + +environment: + global: + USE_RTOOLS: true + R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch " + WARNINGS_ARE_ERRORS: 1 + # Adapt as necessary starting from here build_script: @@ -20,11 +27,13 @@ build_script: test_script: - travis-tool.sh run_tests - on_failure: - 7z a failure.zip *.Rcheck\* - appveyor PushArtifact failure.zip +after_test: +- 7z a testthat.zip *.Rcheck\**\*.Rout + artifacts: - path: '*.Rcheck\**\*.log' name: Logs @@ -35,11 +44,8 @@ artifacts: - path: '*.Rcheck\**\*.fail' name: Logs - - path: '*.Rcheck\**\*.Rout' + - path: testthat.zip name: Logs - - path: '\*_*.tar.gz' - name: Bits - - - path: '\*_*.zip' + - path: '\*_*_*.zip' name: Bits From 264586f0ad440538a9a9f8826980157358567cdf Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 14:06:31 -0400 Subject: [PATCH 09/14] trying the appveyor --- .travis.yml | 1 + appveyor.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 49f9595..d867cc9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -43,6 +43,7 @@ before_install: - export PACKAGE_NAME=`package_name` - echo "Package Name is $PACKAGE_NAME" - fftw_install ; + - R CMD javareconf ; after_success: - cat ${PACKAGE_NAME}.Rcheck/00install.out diff --git a/appveyor.yml b/appveyor.yml index 5907fb2..719e717 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,7 +17,7 @@ cache: environment: global: USE_RTOOLS: true - R_CHECK_INSTALL_ARGS: "--install-args=--build --no-multiarch " + R_CHECK_INSTALL_ARGS: "--no-multiarch --install-args=--build " WARNINGS_ARE_ERRORS: 1 # Adapt as necessary starting from here From 8cda30ce1e46a8bd2d563c4ba88c50f868214768 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 14:07:28 -0400 Subject: [PATCH 10/14] trying tbetter multiarch --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 719e717..64cd43d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,7 +17,7 @@ cache: environment: global: USE_RTOOLS: true - R_CHECK_INSTALL_ARGS: "--no-multiarch --install-args=--build " + R_CHECK_INSTALL_ARGS: "--no-multiarch --no-manual --as-cran" WARNINGS_ARE_ERRORS: 1 # Adapt as necessary starting from here From 3d62aeef907cf31dd561c7ee6db520edbb88b2d8 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 14:31:14 -0400 Subject: [PATCH 11/14] check args dummy --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 64cd43d..9743c49 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -17,7 +17,7 @@ cache: environment: global: USE_RTOOLS: true - R_CHECK_INSTALL_ARGS: "--no-multiarch --no-manual --as-cran" + R_CHECK_ARGS: "--no-multiarch --no-manual --as-cran" WARNINGS_ARE_ERRORS: 1 # Adapt as necessary starting from here From 407b3db35c44be8274cadf0e0e2e279d5a76e7f1 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 14:35:15 -0400 Subject: [PATCH 12/14] added x64 --- appveyor.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appveyor.yml b/appveyor.yml index 9743c49..abf5fdd 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -13,6 +13,10 @@ install: cache: - C:\RLibrary +platform: x64 + +environment: + R_ARCH: x64 environment: global: From f09df5b9c566ac435c020054e1a1bf1d31dd3646 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 14:38:43 -0400 Subject: [PATCH 13/14] fixed R_ARCH --- appveyor.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index abf5fdd..893df44 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,14 +15,12 @@ cache: platform: x64 -environment: - R_ARCH: x64 - environment: global: USE_RTOOLS: true R_CHECK_ARGS: "--no-multiarch --no-manual --as-cran" WARNINGS_ARE_ERRORS: 1 + R_ARCH: x64 # Adapt as necessary starting from here From 4c5b8d8021801eff7a84b1621db172f350fdd4d6 Mon Sep 17 00:00:00 2001 From: muschellij2 Date: Thu, 1 Nov 2018 15:34:10 -0400 Subject: [PATCH 14/14] trying rJava again --- appveyor.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/appveyor.yml b/appveyor.yml index 893df44..b574918 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,6 +25,7 @@ environment: # Adapt as necessary starting from here build_script: + - Rscript -e "install.packages('rJava', type = 'source', repos=c(CRAN='https://cran.rstudio.com'))" - travis-tool.sh install_deps test_script: