Skip to content

Instantly share code, notes, and snippets.

View Nikaraqua's full-sized avatar

Heike Nikaraqua

  • South Africa
View GitHub Profile
@yano3
yano3 / gist:1378948
Created November 19, 2011 15:17
git commit --amend --reset-author
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
@dsparks
dsparks / dput example.R
Created September 10, 2012 03:21
Illustrating the use of dput()
# Let's say you have an R object that you'd like to share with someone else
# but, for whatever reason, it is necessary to share it in text form.
# Generate a random data.frame
set.seed(1337)
NN <- 10
theData <- data.frame(Alpha = rnorm(NN),
Beta = rnorm(NN))
theData$Gamma <- theData$Alpha * 2 + theData$Beta / 2 + rnorm(NN)
print(theData)

A friend is trying to get Rtools installed correctly on her windows machine. It seems to install fine, but then at the end, she gets an error. The error below shows up in the Rtools installation wizard, and it suggest a permissions problem.

This is the error when trying to isntall Rtools on her machine

C:\Users\Chris\Documents\R\Rtools\gcc-4.6.3

Error creating registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment