Bala's Blog

Resolving Babel Invalid Function on Emacs Startup

August 11 2018
98 words, ~1 min. read
emacs,  babel 

Recently, I setup one of my laptops with Cask for my Emacs setup. However, I was running into a issue; whenever I start Emacs, it was reporting the following error on startup,

Invalid function: org-babel-header-args-safe-fn

After I searched the internet, I found that this is an issue with ob-R.el. I also found that it could be resolved by byte-compiling the file. So, from within emacs, I invoked Alt+X and selected byte-compile-file. When asked for the file to compile, I gave <path-to-list-files>/ob-R.el and restarted Emacs.

Note: I had to repeat byte-compiling process twice, in order to make it work.