Merge branch 'waf' into R