Add the following debian source provider to /etc/apt/sources.list
deb-src http://cran.r-project.org/bin/linux/debian squeeze-cran/
Download the KEY from Johannes Ranke (CRAN Debian archive)
D-coding unittest, needs to import
import std.stdio;
import std.conv;
import std.string;The unittest layout:
R/qtl provides many example data sets in several species and crosses. After loading the package by using either a library() or require() call, these can be loaded into the work space by using the data() function. To load the hyper data set containing measurements on hypertension in mice give the following commands in the R interpreter:
library(qtl) #Load the R/qtl library| #Stop maui | |
| ps -ef | grep maui | |
| kill <pid> | |
| #Start maui | |
| /usr/local/maui/sbin/maui | |
| #Terminate PBS quick n dirty | |
| qterm -t quick |
| /** | |
| A minimal example to use the random number generator of R (calling into Rlib.so from D) | |
| dmd test_rlib.d ; ./test_rlib | |
| It is a copy of the C code I wrote for BioLib | |
| (c) Pjotr Prins, 2012 | |
| Win32 support was added by Danny Arends | |
| See the latest version at: https://github.com/pjotrp/qtlHD/blob/master/src/D/test/rlib/test_rlib.d | |
| */ | |
| module test.rlib.test_rlib; |
| import std.stdio; | |
| interface CrossDef{ | |
| abstract int init(); | |
| abstract int emit(); | |
| } | |
| class RIL : CrossDef{ | |
| int init(){ return 1; } | |
| int emit(){ return 2; } |
Reset to the commit before the wrong one
git reset YYY --hard
git push origin master --force
Update to the current 'blessed repos'
git pull molgenis master
Get any commits we did AFTER the wrong one
| module cordicalgorithm; | |
| import std.traits, std.conv; | |
| immutable PI = 3.14159265359; | |
| immutable trigono = gen_trigonometric!double(); | |
| pure int degreeloop(int deg){ | |
| while(deg < 0 || deg >= 360){ | |
| (deg < 0) ? deg += 360 : deg -= 360; |
| module rotationmatrices; | |
| import std.stdio; | |
| import cordicalgorithm; | |
| struct mat(T = float){ | |
| T[][] data; | |
| pure mat!T opBinary(string op)(mat!T rhs){ | |
| static if (op == "*" || op == "+" || op == "-"){ |
| *~ | |
| *.rdf | |
| *.n3 |