Giter Site home page Giter Site logo

Build under MacOSX about beastier HOT 4 CLOSED

ropensci avatar ropensci commented on August 21, 2024
Build under MacOSX

from beastier.

Comments (4)

richelbilderbeek avatar richelbilderbeek commented on August 21, 2024
  - # Java
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install java; fi
  - # Java 8
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq oracle-java8-installer; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install oracle-java8-set-default; fi

from beastier.

richelbilderbeek avatar richelbilderbeek commented on August 21, 2024
  - # Java
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install java; fi
  - # Java 8
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -qq oracle-java8-installer; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install oracle-java8-set-default; fi

from beastier.

richelbilderbeek avatar richelbilderbeek commented on August 21, 2024

Got error:

> test_check("beastier")
── 1. Error: use, fast (@test-are_beast2_input_lines.R#5)  ─────────────────────
.onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/Users/travis/R/Library/rJava/libs/rJava.so':
  dlopen(/Users/travis/R/Library/rJava/libs/rJava.so, 6): Library not loaded: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/lib/server/libjvm.dylib
  Referenced from: /Users/travis/R/Library/rJava/libs/rJava.so
  Reason: image not found
1: testthat::expect_true(beastier::are_beast2_input_lines(readLines(beastier::get_beastier_path("anthus_2_4.xml")))) at testthat/test-are_beast2_input_lines.R:5
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: beastier::are_beast2_input_lines(readLines(beastier::get_beastier_path("anthus_2_4.xml")))
5: are_beast2_input_lines_deep(lines = lines, verbose = verbose, beast2_path = beast2_path)
6: is_beast2_input_file(filename = filename, verbose = verbose, beast2_path = beast2_path)
7: beastier::create_beast2_validate_cmd(input_filename = filename, beast2_path = beast2_path)
8: create_beast2_validate_cmd_jar(input_filename = input_filename, beast2_jar_path = beast2_path)
9: get_default_java_path()
10: rJava::.jinit
11: getExportedValue(pkg, name)
12: asNamespace(ns)
13: getNamespace(ns)
14: tryCatch(loadNamespace(name), error = function(e) stop(e))
15: tryCatchList(expr, classes, parentenv, handlers)
16: tryCatchOne(expr, names, parentenv, handlers[[1L]])
17: value[[3L]](cond)

Thanks to https://github.com/snowflakedb/dplyr-snowflakedb/wiki/Configuring-R-rJava-RJDBC-on-Mac-OS-X, I added:

  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then R --quiet -e 'install.packages("rJava", type="source", repos="http://cran.us.r-project.org")'; fi

from beastier.

richelbilderbeek avatar richelbilderbeek commented on August 21, 2024

Done!

from beastier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.