General features
C=strsplit('851+-. ','')[[1]]
i=jpeg::readJPEG(system.file('img/Rlogo.jpg',package='jpeg'))[c(T,F),,2]
i[]=C[findInterval(i,quantile(i,p=seq(0,1,,length(C))))]
cat(apply(i,1,paste,collapse=''),sep='\n')
-- - -- - ++++++++++++++++++ -- -- - - - -+
- - + -- ++++155555555555555555555555555555551+++ -+- +-- +
- +- -…
Say I don’t like the default arguments of a particular function. What can I do about it?
The eight queens puzzle is the problem of placing eight chess queens on an 8×8 chessboard so that no two queens threaten each other.
What’s a good way to find the location of a needle
in a haystack
?
In this post, as an example of using minilexer
, I’ll parse the stanford bunny 3D object into an R data structure and display it.
In this post, as an example of using minilexer
, I’ll parse chess games into an R data frame.
In a prior post, I introduced the minilexer
package, and showed some basic uses of the core functions.
I need to read some foreign data formats into R data structures for manipulation. If the data was csv or yaml or json then I’d just use a package that someone else had written to read in the data. In my case, the data format doesn’t have its own package, so I need to write some parsing code from scratch.
Most (all?) testing packages in R are built around the idea of testing a value at a particular moment in time e.g. “Check that a == 2
right now”.