Comments (7)
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.
Of course, feel free to report this upstream, i.e. at rgeos
Thanks for your report anyways.
from rstoolbox.
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.
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.
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.
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.
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)
- R fatal error when using unsuperClass from RStoolbox HOT 4
- `superClass` unable to predict when there is NA in raster data HOT 3
- Fails to run `superClass` when one of the raster layer is factor HOT 3
- Fails to run superClass when providing the `model` parameter
- Fails to run ggRGB with stacked rasters HOT 4
- Implementation of Sentenel-2 Tasseled Cap
- Duplicate row.names are not allowed. HOT 4
- Allow fitting models on raster stacks of differing extents HOT 3
- Training data error superClass HOT 1
- MTL file error HOT 2
- Please attend to retirement of rgdal, rgeos and maptools HOT 1
- No plot with ggRGB(rlogo, ggLayer = TRUE)
- Problems with readMeta
- Stale CRS in stored objects
- Please remove dependencies on **rgdal**, **rgeos**, and/or **maptools** HOT 3
- topCor
- Error: rasterCVA
- ggR with classified raster HOT 1
- CRAN Archival 2023-02-12 HOT 8
- error in evaluating the argument 'y' in selecting a method for function 'intersect': non-character object(s)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rstoolbox.