pik-piam / magclass

R package | Data Class and Tools for Handling Spatial-Temporal Data
GNU Lesser General Public License v3.0
4 stars 24 forks source link

handle writing all-NA magclass objects in write.report #160

Closed fbenke-pik closed 11 months ago

fbenke-pik commented 11 months ago

prepareData needs to be skipped in that case, as it tries to apply dcast on an empty data table and crashes. This is only problematic, when NAs should be removed, i.e. skipempty is set to TRUE