Coder Social home page Coder Social logo

Create function to stop r5_core about r5r HOT 7 CLOSED

ipeagit avatar ipeagit commented on August 25, 2024
Create function to stop r5_core

from r5r.

Comments (7)

mvpsaraiva avatar mvpsaraiva commented on August 25, 2024 1

The r5_core does not work the same way as the OTP server. Technically, if you delete the r5_core object from memory, it should kill the whole process. This should work:

rm(r5_core)

When you close RStudio, or restart your R session, r5_core should stop also.

from r5r.

dhersz avatar dhersz commented on August 25, 2024

Done.

from r5r.

rafapereirabr avatar rafapereirabr commented on August 25, 2024

I've tryind using rm(r5_core) while running travel_time_matrix and it did not stop. Daniel, did this work for you?

from r5r.

dhersz avatar dhersz commented on August 25, 2024

I didn't try that, but I guess that rming after starting to build the matrix doesn't affect anything, since what matters is the r5_core being alive in the moment of the function call. Does that make sense?

from r5r.

mvpsaraiva avatar mvpsaraiva commented on August 25, 2024

@rafapereirabr How did you manage to call rm(r5_core) while running travel_time_matrix? Shouldn't R console be stuck during execution?
Anyways, I don't think removing r5_core from R environment would "hard-stop" it's execution...

from r5r.

rafapereirabr avatar rafapereirabr commented on August 25, 2024

@rafapereirabr How did you manage to call rm(r5_core) while running travel_time_matrix? Shouldn't R console be stuck during execution?
Anyways, I don't think removing r5_core from R environment would "hard-stop" it's execution...

Yep, I hopelessly tried to call rm(r5_core) while running travel_time_matrix

from r5r.

rafapereirabr avatar rafapereirabr commented on August 25, 2024

Hi all, I've tried the stop_r5() function and it seems to be working fine. Can we close this issue?

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.