With Audio and Screen Sharing Enabled
Add the i386
architecture to the list of dpkg
architectures :
sudo dpkg --add-architecture i386
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Matlab code to produce PCA animations shown here: | |
% http://stats.stackexchange.com/questions/2691 | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Static image | |
clear all | |
rng(42) |
library(rstanarm) | |
library(tidyverse) | |
library(viridis) | |
gtemp <- read.delim("http://www.metoffice.gov.uk/hadobs/hadcrut4/data/current/time_series/HadCRUT.4.5.0.0.annual_ns_avg.txt", | |
sep="", header = FALSE) %>% | |
select(1,2) %>% | |
set_names(c("Year", "Temperature")) | |
st_mod2 <- stan_gamm4(Temperature ~ s(Year), data = gtemp) |
# WMF only: | |
if (file.exists("/etc/wikimedia-cluster")) { | |
message('Detected that this script is being run on a WMF machine ("', Sys.info()["nodename"], '"). Setting proxies...') | |
Sys.setenv("http_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
Sys.setenv("https_proxy" = "http://webproxy.eqiad.wmnet:8080") | |
} | |
# General use: | |
message("Checking for a personal library...") | |
if (!dir.exists(Sys.getenv("R_LIBS_USER"))) { |
# Makes sure the required packs are loaed, if not, intalles them. | |
pkgs <-c ('sp','ggplot2','rgdal','broom','maptools','tigris', 'blscrapeR') | |
for(p in pkgs) if(p %in% rownames(installed.packages()) == FALSE) {install.packages(p, repos='http://cran.us.r-project.org')} | |
for(p in pkgs) suppressPackageStartupMessages(library(p, quietly=TRUE, character.only=TRUE)) | |
# Before we get into the projections, let's download some unemployment data to map. | |
county_dat <- get_bls_county() | |
# We also need a shapefile with the appropriate FIPS codes. | |
state <- counties(cb = TRUE, year = 2015) |
variables: | |
CODECOV_TOKEN: "CODECOV_TOKEN_STRING" | |
_R_CHECK_CRAN_INCOMING_: "false" | |
_R_CHECK_FORCE_SUGGESTS_: "true" | |
APT_PKGS: "libcurl4-openssl-dev libssh2-1-dev libssl-dev libxml2-dev zlib1g-dev git" | |
before_script: | |
- apt-get update | |
- apt-get install -y --no-install-recommends ${APT_PKGS} | |
- apt-get install -y --no-install-recommends qpdf pandoc pandoc-citeproc |
#!/bin/bash | |
set -ex | |
GDALBUILD="$(realpath `dirname $BASH_SOURCE`)/build" | |
GDALINST="/usr/local/gdal" | |
CPUS=4 | |
GDALOPTS=" --with-webp=yes \ | |
--with-geos=/usr/local/bin/geos-config \ | |
--with-static-proj4=/usr/local \ |
library(rstan) | |
library(MASS) | |
# Simulate some data | |
mu <- c(10, 5, -5) | |
Sig <- matrix(c(1, 0.7, 0.8, | |
0.7, 2, 0.2, | |
0.8, 0.2, 1.5), | |
3, 3) | |
N <- 100 |
Fix 2016-05-06
svn checkout svn://scm.r-forge.r-project.org/svnroot/rgdal/pkg mv pkg rgdal R CMD build rgdal --no-build-vignettes --no-manual sudo R CMD INSTALL rgdal_1.1-9.tar.gz
R