-
Introduction
-
Discussion:
- google: users.clas.ufl.edu/msscha/thesiscss/thesis_disc.html
R packages
- http://r-pkgs.had.co.nz/description.html#version
- http://r-pkgs.had.co.nz/release.html#release-version
Compleate guide: http://semver.org/spec/v2.0.0.html
Summary by user: https://github.com/dbrock/semver-howto
- time: warn speakers 5' and 1' before time out (https://goo.gl/6BW3Wr). The sign may be hand up at 5' and stand up at 1'.
http://sixminutes.dlugan.com/how-to-introduce-a-speaker/
The idea is to build the speaker up in the audience’s mind. Answer:
library(baad.data)
library(tidyverse)
#> + ggplot2 2.2.1 Date: 2017-10-04
#> + tibble 1.3.4 R: 3.4.1
#> + tidyr 0.7.1 OS: Windows 10 x64
#> + readr 1.1.1 GUI: RTerm
#> + purrr 0.2.3 Locale: English_Australia.1252
#> + dplyr 0.7.2 TZ: America/New_York
#> + stringr 1.2.0
Read this if one of the following applies to you:
- You are using
library(package)
orrequire(package)
inside your functions - You don't know exactly when you need the syntax
package::function()
orpackage:::function()
as opposed tofunction()
.
If you are using functions from other packages inside functions of your own package, then you are dealing with NAMESPACE issues. NAMESPACE is one of the most confusing parts of an R package. Prepare for your brain to hurt a bit. This information will not answer all your questions, but it will rise an alarm that may save you time and trouble.
From http://r-pkgs.had.co.nz/namespace.html, find section "Imports" and read its introduction and also the subheading "R functions".
- Don't hard code settings (e.g. figure colours), read them from a file via read_settings().
The code is more readable and flexible than it would be if a value were hard-coded. You don't need to change the program to change titleBar.color ; you simply change the contents of the source that's read by"
-― from "Code Complete (Developer Best Practices)" by Steve McConnell, http://a.co/b75gLyw
- Prefer long informative names over short uninformative ones (8-20 characters is ok)
In modern languages like C++, Java, and Visual Basic, you can create names of virtually any length; you have almost no reason to shorten meaningful names.
C | F |
---|---|
-10 °C | 14.0 °F |
-9 °C | 15.8 °F |
-8 °C | 17.6 °F |
-7 °C | 19.4 °F |
-6 °C | 21.2 °F |
-5 °C | 23.0 °F |
-4 °C | 24.8 °F |
-3 °C | 26.6 °F |