Hi Chris - I just pushed a fix for this, so your original script should work as soon as MELPA updates ESS (usually within 4-8 hours). Let me know if you continue to experience issues after that update. Thanks for reporting this bug. Alex