0

Suppose, for example, I have seek(binfile, 64). (When) should this be seek(binfile, 64L), instead? Should I go back through my code base and apply the L suffix everywhere I intend integers, but have thus far relied on R to understand what I mean?

Ana Nimbus
  • 635
  • 3
  • 16
  • As far as I understand, only if you want to test that they're really integer with `is.integer` for example, or if you have large amounts of them and want to save memory. It also looks tidy for default function arguments and in code in general to to understand faster what type of data one's dealing with – moodymudskipper Oct 25 '17 at 23:40
  • Thanks to @Moody_Mudskipper for identifying this as a duplicate. May I suggest leaving this page here so that the original question and answers may be found more readily? – Ana Nimbus Oct 26 '17 at 17:29
  • that's exactly how it's supposed to work ;) – moodymudskipper Oct 26 '17 at 17:32

0 Answers0