Here are some tips on getting R development working with Yosemite. Contribute what you know below and I'll add it in.
I went ahead and re-installed all of my homebrew
. You can find out what you have installed with
#!/bin/bash | |
# | |
# Installs the latest RStudio daily desktop build for OSX/macOS and Ubuntu(amd64) | |
# | |
# https://support.rstudio.com/hc/en-us/articles/203842428-Getting-the-newest-RStudio-builds | |
set -e | |
install_macos_daily() { | |
REDIRECT_URL="https://www.rstudio.org/download/latest/daily/desktop/mac/RStudio-latest.dmg" |
library("rvest") | |
library("XML") | |
links_list <- html("http://www.burnaby.ca/City-Services/Building/Permits-Issued.html") %>% | |
html_nodes("#ctl15_nestedList a") | |
## Where do links lead? This is encoded in the attribute "href". First get all the attributes | |
links_attr <- sapply(links_list, xmlAttrs) | |
## We have the attributes! each link just became a single named character |
library(rvest) | |
library(magrittr) | |
library(tidyr) | |
library(dplyr) | |
library(stringr) | |
character_data <- function(chname){ | |
paste0("http://en.memory-alpha.org/wiki/", chname) %>% | |
html %>% | |
html_nodes(".wiki-sidebar") %>% |
Here are some tips on getting R development working with Yosemite. Contribute what you know below and I'll add it in.
I went ahead and re-installed all of my homebrew
. You can find out what you have installed with
# Test of Significance, takes the same arguments as t.test() . | |
signif.test <- function(x, ...) { | |
p <- t.test(x, ...)$p.value | |
# List of p excuses retrieved from http://mchankins.wordpress.com/2013/04/21/still-not-significant-2/ | |
p_excuses <- c( | |
"(barely) not statistically significant <p>", | |
"a barely detectable statistically significant difference <p>", | |
"a borderline significant trend <p>", | |
"a certain trend toward significance <p>", |