GithubHelp home page GithubHelp logo

Bad setup_gama path directory about gamar HOT 1 OPEN

r-and-gama avatar r-and-gama commented on August 23, 2024 1
Bad setup_gama path directory

from gamar.

Comments (1)

virgile-baudrot avatar virgile-baudrot commented on August 23, 2024

It seems to be the path in function gama_version within zzz.R

So change from this:

gama_version <- function(path) {
  v_info <- readLines(
    paste0(path, "/Contents/Eclipse/Configuration/config.ini'"))
  v_info <- v_info[10]
  v_info <- gsub("[[:alpha:]]|=", "", v_info)
  v_info <- as.numeric(v_info)
} 

to:

gama_version <- function(path) {
  os <- paste0(get_os())
  subpath <- ifelse(os == "Darwin", "/Contents/Eclipse", "")
  v_info <- readLines(
    paste0(path,  "/configuration/config.ini"))
  v_info <- v_info[10]
  v_info <- gsub("[[:alpha:]]|=", "", v_info)
  v_info <- as.numeric(v_info)
}

should solve it.
I'm also curious it's working for MacOS since it's a lowercase "C" in "configuration" folder name (no case sensitive?).

Also, the function .onAttach cannot check version > 1.8. The change I proposed in  gama_version() does not solve it. The path returned by pehaps_path <- gama_local_distrib_path() is not the good path for gama_version().

from gamar.

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.