Coder Social home page Coder Social logo

Issues with setup_r5() about r5r HOT 7 CLOSED

ipeagit avatar ipeagit commented on August 25, 2024
Issues with setup_r5()

from r5r.

Comments (7)

mvpsaraiva avatar mvpsaraiva commented on August 25, 2024 1

Apparently, the pbf.mapdb and pbf.mapdb.p files are required by R5. I tried deleting them, but R5 created them again the next time I ran setup. I've added them to .gitignore.

from r5r.

dhersz avatar dhersz commented on August 25, 2024

The network.dat is the graph, I suppose, but not sure what the others are.

from r5r.

rafapereirabr avatar rafapereirabr commented on August 25, 2024

I' not entirely sure why R5 create these other .pbf.mapdb.p, though this seems to be a data base that R5 uses internally. In any case, I don't see why this should be a concern for the moment, right?

Regarding the other questions, update the lastest version of r5r and let me know if the problem persists. Rigth now, the setup_r5 function should be able to build a network if only a OSM.pbf file is provided with no GTFS. So, the GTFS file is optional so to speak, but it cannot create a network without an OSM.pbf file.

from r5r.

dhersz avatar dhersz commented on August 25, 2024

The problem persists. Here's a reproducible code, can you check if you get the same error?

dir.create("~/test_r5r")

files_path <- system.file("extdata", package = "r5r")

file.copy(
  from = paste0(files_path, "/", list.files(files_path)), 
  to = "~/test_r5r"
)

setup_r5("~/test_r5r")

from r5r.

mvpsaraiva avatar mvpsaraiva commented on August 25, 2024

In my test, "~/test_r5r" is not recognised as a correct path. I don't know if this is an R or Java issue. Changing the path to "/home/marcus/test_r5r" worked.

I've found the function path.expand() that does what we need.

from r5r.

mvpsaraiva avatar mvpsaraiva commented on August 25, 2024

I believe it's working now.
ce42bdb

from r5r.

dhersz avatar dhersz commented on August 25, 2024

Works alright for me now!

from r5r.

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.