Google RLint: Reformatting R Code to Follow the Google St Uživatelský manuál Strana 10

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 19
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 9
Google Confidential and Proprietary
Ex: Indentation
Code
if (x == 5)
while (x > 1) # R-bleed bug? ;)
x <- x - 1
print(x)
Corrected code
if (x == 5)
while (x > 1)
x <- x - 1
print(x)
Zobrazit stránku 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 18 19

Komentáře k této Příručce

Žádné komentáře