Git Product home page Git Product logo

Comments (7)

bleutner avatar bleutner commented on August 11, 2024

This is not directly an RStoolbox issue but results from importing the rgeos package, which in turn has this memory leak. However, since you won't load rgeos or RStoolbox millions of times during your session I don't think this is an important issue.

To strip your example down to the core for future reference:
R -d "valgrind --leak-check=full --show-reachable=yes" -e 'library(rgeos)'
and
R -d "valgrind --leak-check=full --show-reachable=yes" -e 'library(RStoolbox)'

will both report
definitely lost: 1,096 bytes in 1 blocks

from rstoolbox.

bleutner avatar bleutner commented on August 11, 2024

Of course, feel free to report this upstream, i.e. at rgeos
Thanks for your report anyways.

from rstoolbox.

datagistips avatar datagistips commented on August 11, 2024

Hi

Thanks for all the information

What I do not understand is why you mention rgeos. Do you mean rgeos is
loaded when we call RStoolbox ?

Sorry for asking you this but I am a bit newbie in this kind of stuff

Best

Mathieu
Le 4 févr. 2016 15:48, "Benjamin Leutner" [email protected] a
écrit :

Of course, feel free to report this upstream, i.e. at rgeos
Thanks for your report anyways.


Reply to this email directly or view it on GitHub
#5 (comment).

from rstoolbox.

bleutner avatar bleutner commented on August 11, 2024

rgeos is imported by RStoolbox, which means its functions are available internally for RStoolbox, i.e. inside the RStoolbox namespace but are not available globally, i.e. to you. Thus, if you want to use rgeos, you'd still call library(rgeos) yourself (this is called attaching the package to the global search path).

If you look at the DESCRIPTION file of any package you see all packages which are imported fully or partially under IMPORTS. Contrastingly, everything that's listed under DEPENDS behaves as if you would call library(package) yourself.

from rstoolbox.

datagistips avatar datagistips commented on August 11, 2024

Ok thanks I understand now

Thanks for the awesome package

I used it to make a script that with spgrass, rgeos also, detects all the
blue pixels on RGB topo maps so as to extract rivers as vectors and feed an
inventory of rivers subject to water policies. It will be useful for the
national french agencies who depend from the Ministry of Ecology, for whom
I work
Le 4 févr. 2016 19:48, "Benjamin Leutner" [email protected] a
écrit :

rgeos is imported by RStoolbox, which means its functions are available
internally for RStoolbox, i.e. inside the RStoolbox namespace but are
not available globally, i.e. to you. Thus, if you want to use rgeos, you'd
still call library(rgeos) yourself (this is called attaching the
package to the global search path).

If you look at the DESCRIPTION file of any package you see all packages
which are imported fully or partially under IMPORTS. Contrastingly,
everything that's listed under DEPENDS behaves as if you would call
library(package) yourself.


Reply to this email directly or view it on GitHub
#5 (comment).

from rstoolbox.

gifi avatar gifi commented on August 11, 2024

Hi @bleutner and @datagistips
I am the person who brought Valgrind into all of this. While you two were discussing about RStoolbox, the rgeos' maintainer and I was having some argument on how to resolve the issue Matthieu had. I made the bits available in the original thread. They are wrote mainly in English.
So even Benjamin might be interested to take a look at them. I am assuming French is not a language you, Benjamin, don't use to speak/read, all my bad if I am wrong.
The URL: http://www.developpez.net/forums/d1564087/autres-langages/autres-langages/r/rscript-batch-e-accent-aigue/#post8524546
Cheers,
Eric.

from rstoolbox.

bleutner avatar bleutner commented on August 11, 2024

Hi Eric,

thanks for letting me know. I've got no clue about what went wrong with this locale switching, so I'm glad updating solved it.

Indeed, my rusty French will only buy me some bread, but not much more ;-)

from rstoolbox.

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.