[metrics-bugs] #24707 [Metrics]: Define R coding guidelines for Metrics' products

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Feb 28 13:43:13 UTC 2018

#24707: Define R coding guidelines for Metrics' products
 Reporter:  iwakeh       |          Owner:  metrics-team
     Type:  enhancement  |         Status:  new
 Priority:  Medium       |      Milestone:
Component:  Metrics      |        Version:
 Severity:  Normal       |     Resolution:
 Keywords:               |  Actual Points:
Parent ID:               |         Points:
 Reviewer:               |        Sponsor:

Comment (by iwakeh):

 From a recent
 [https://trac.torproject.org/projects/tor/ticket/25259#comment:1 R tuning]
 ticket and [https://gitweb.torproject.org/metrics-
 web.git/commit/?id=ab7d546a9dae35efdfc2c1f8c4a09e473df72747 commit]:
   Performing pre-processing separately, helping R by defining read types,
 and avoid multiple casting operations.

 So, always use `colClasses` parameter in `read.csv` and watch out for
 implicit casts.

Ticket URL: <https://trac.torproject.org/projects/tor/ticket/24707#comment:3>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online

More information about the metrics-bugs mailing list