Google RLint: Reformatting R Code to Follow the Google St Instrukcja Użytkownika Strona 8

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 19
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 7
Google Confidential and Proprietary
Ex: Spacing
Code: foo <-function(x){
return (list (
a = sum(x[,1]),
b = 1/3+1e-7*(x[1,1])) …
Warnings:
Place spaces around all binary operators (=, +, -, <-, etc.).
Place a space before left parenthesis, except in a function
call.
Corrected: foo <- function(x) {
return(list(
a = sum(x[, 1]),
b = 1/3 + 1e-7 * (x[1, 1]) ...
Przeglądanie stron 7
1 2 3 4 5 6 7 8 9 10 11 12 13 ... 18 19

Komentarze do niniejszej Instrukcji

Brak uwag