Word could not create the work file. Check the temp environment variable

Encrypting the Microsoft Windows temporary folder causes Microsoft Outlook 2010 to not open Word file attachments because of these “cryptic” errors: Word could not create the work file. Check the temp environment variable The file (filename) cannot be opened because there are problems with the contents. Unspecified error Location: Part: /word/document.xml, Line:2, Column:0 Run this…

Scales and transformations in ggplot2 0.9.0

Some R code designed for ggplot2 0.8.9 is not compatible with ggplot2 0.9.0, and today the ggplot2 web site has outdated documentation which gives this broken example: Dennis Murphy points to the ggplot2 0.9.0 transition guide from where I derived a solution: The transition guide has more details about transformations such as log, log10, sqrt,…

doSMP removed from CRAN

If you do parallel processing in R on Windows, then you probably have heard of the doSMP package. However, it was recently removed from the CRAN repository with the terse message: Package ‘doSMP’ was removed from the CRAN repository. Revolution Analytics develops the doSMP package and promptly sent me this explanation: The doSMP package relies…

An error occurred while installing the NPF driver (0×00000430).

This error occurred while installing WinPcap, which comes bundled with Wireshark (a network protocol analyzer): Error WinPcap 4.1.2 Setup An error occurred while installing the NPF driver (0×00000430). Please contact the WinPcap Team including the file C:\Program Files\WinPcap\install.log. The installation will now continue anyway The older WinPcap 4.0.1 produces a similar error: An error occurred…

error: asm/asm-offsets.h: No such file or directory

While building compcache 0.6.2 on Ubuntu Lucid Lynx (10.04) with 64-bit Linux kernel 2.6.32-305-ec2, I saw this error. I believe this is an error in the 64-bit 2.6.32 kernel, so you would see this on other distributions (e.g., Gentoo, Slackware) and while compiling other kernel modules (e.g., VMWare, OpenAFS, drbd8). The good news is there…

Setting the HTML title tag in SAS ODS (the right way)

In our department and various places on the Intertubes, SAS programmers set the HTML title tag (which sets the title in web browsers and on search engines) in ODS using the headtext option: This may work in some situations, but it’s ugly and wrong. To see why, view the raw HTML: Each HTML page should…

Error : .onLoad failed in ‘loadNamespace’ for ‘RWeka’

After installing Weka/RWeka in R, you may get this error if you try to load RWeka in the same session: require(RWeka) Cannot create Java virtual machine (-4) Error : .onLoad failed in ‘loadNamespace’ for ‘RWeka’ Solution: Just close R and re-open it. Cause: Apparently the installation requires some initialization. Tested on R 2.10.1 on Windows…