curso-r / stockfish

An R package to analyze chess games with the Stockfish engine
GNU General Public License v3.0
31 stars 2 forks source link

R6 class finalizer #2

Closed dfalbel closed 3 years ago

dfalbel commented 3 years ago

You could have a R6 class finalizer in order to fix:

Don’t forget to assign: if you simply run fish$new() without assigning it to an object, you will have to either restart the session or kill the Stockfish process manually in order not to have dangling engines eating up your RAM.

clente commented 3 years ago

That is a great idea. Thanks for pointing it out!