jbaileyh / geogrid

Turning geospatial polygons into regular or hexagonal grids. For other similar functionality see the tilemaps package https://github.com/kaerosen/tilemaps
Other
393 stars 31 forks source link

Initialize the memory with zeros #35

Closed Nowosad closed 5 years ago

Nowosad commented 5 years ago

It follows Jim's suggestion (https://community.rstudio.com/t/valgrind-conditional-jump-or-move-depends-on-uninitialised-value-s/16157)

lintr-bot commented 5 years ago

R/RcppExports.R:7:11: style: Only use double-quotes.

​    .Call('_geogrid_hungarian_cc', PACKAGE = 'geogrid', cost)
          ^~~~~~~~~~~~~~~~~~~~~~~

R/RcppExports.R:7:46: style: Only use double-quotes.

​    .Call('_geogrid_hungarian_cc', PACKAGE = 'geogrid', cost)
                                             ^~~~~~~~~

R/RcppExports.R:13:11: style: Only use double-quotes.

​    .Call('_geogrid_hungariansafe_cc', PACKAGE = 'geogrid', cost)
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~

R/RcppExports.R:13:50: style: Only use double-quotes.

​    .Call('_geogrid_hungariansafe_cc', PACKAGE = 'geogrid', cost)
                                                 ^~~~~~~~~

R/RcppExports.R:15:1: style: Trailing blank lines are superfluous.

​
^