Check object size when reading from file

Is there a way to check the size of the file that was read? I'm specifically trying to figure out the size of the memory in the shapefile read by the maptools library:

 df = readShapeSpatial("/path/file.shp") 
+4
source share
2 answers
 object.size(df) .................................. 
+6
source

See ?object.size :

 a <- runif(1e6) object.size(a) print(object.size(a), units="Mb") 
+4
source

Source: https://habr.com/ru/post/1402814/


All Articles