Publications by Marek Gągolewski
Properly “internationalized” regular expressions in R
We should pay special attention to writing a truly portable code that works in the same fashion under different locales and character encodings. Currently, R has two Regex engines, ERE (via TRE) and PRE (via PCRE). What is surprising, they ought to give different results on different operating systems and native character encodings used! [email ...
1877 sym R (1487 sym/3 pcs) 1 tbl
Configure Kile for knitr under GNU/Linux
Kile – a convenient LaTeX editor – may also be used to prepare knitr-generated reports. Here is how we may make our work much more efficient with a convenient compile-on-keypress feature. Create a bash script in your home directory, named e.g. ~/knitr-compile.sh: #!/bin/bash echo "Compiling $1 with LC_CTYPE=pl_PL.UTF-8..." LC_CTYPE="pl_PL....
1175 sym R (401 sym/5 pcs)
knitr documents with tikzDevice graphics
Setting up tikzDevice output in knitr may be a frustrating task, but gives outstandingly aesthetic, LaTeX-like figures. Here are my global knitr settings for typesetting documents in Polish (in UTF-8, make sure your R also runs in a Unicode locale or change inputenc according to your preferences). Run right after \begin{document} in an .Rnw sour...
785 sym R (1392 sym/1 pcs)
Documentation of R source code for package developers
R package developers who use the native API written in C will surely be interested in the Roxygen-generated Documentation of R source code. The documentation is based on the SVN R-devel branch and will be updated on a monthly basis by the Rexamine team. We have included whole, browsable C code (which is of course licensed under the GNU GPL v2). T...
983 sym
Package-defined S4 generic covered by a base S3 generic in R packages
While developing our agop package I encountered some problems with calling S4 generic functions defined in the Matrix package, that were created from “base” S3 generics. I don’t know whether it’s an R bug (tested in R 2.15 and R Under development 2013-05-19 3.1-r62765), or whether such behavior was induced intentionally by the R team. No...
1994 sym R (420 sym/5 pcs)
FuzzyNumbers-0.3-1 released
A new version of the FuzzyNumbers package for R has just been submitted to the CRAN archive. Check out our step-by-step tutorial. ** FuzzyNumbers Package CHANGELOG ** ********************************************************************* 0.3-1 /2013-06-23/ * piecewiseLinearApproximation() - general case (any knot.n) for me...
540 sym Python (2025 sym/1 pcs)
FuzzyNumbers_0.3-3 released
A new release of the FuzzyNumbers package for R is now available on CRAN. The package provides S4 classes and methods to deal with Fuzzy Numbers that allow for computations of arithmetic operations, approximation by trapezoidal and piecewise linear FNs, visualization, etc. Fuzzy set theory lets us quite intuitively represent imprecise or vague i...
2460 sym
ShareLaTeX now supports knitr
ShareLaTeX (click here to register a free account) is a wonderful and reliable on-line editor for writing and compiling LaTeX documents “in the cloud” as well as working together in real-time (imagine Google Docs supporting LaTeX => you get ShareLaTeX). What is even more, the ShareLaTeX team recently announced that now its users are able to p...
1243 sym R (2084 sym/2 pcs)
(String/text processing)++: stringi 0.2-3 released
A new release of the stringi package is available on CRAN (please wait a few days for Windows and OS X binary builds). stringi is a package providing (but definitely not limiting to) replacements for nearly all the character string processing functions known from base R. While developing the package we had high performance and portability of its ...
9781 sym R (2715 sym/12 pcs)
Counting the number of words in a LaTeX file with stringi
In my recent post I promised to present the most interesting features of the stringi package in more detail. Here's one of such jolly features. Many LaTeX users may find it very useful. Loading a text file with encoding auto-detection Here's a LaTeX document consisting of a Polish poem. Probably, most of you wouldn't have been able to guess the f...
2756 sym R (1892 sym/7 pcs) 2 img