Andreas Leha writes: > Hi Eric, > > [...] > >> As a side note, if >> one wants to set these R defaults for a single file the following syntax >> at the top of the file will suffice. >> >> # -*- org-babel-default-header-args:R: ((:session . "foo")) -*- >> > > That does not work for me. (I am on GNU Emacs 24.3.50.1, org-mode > version 8.0-pre (release_8.0-pre-97-gffdd9e)) > That's weird, it works perfectly for me. I'm using the same version of Emacs, but an earlier version of Org-mode. Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) > > When I open an org-file containing that line, I get > ,---- > | Malformed mode-line > `---- > and have to answer > ,---- > | The local variables list contains values that may not be safe(*). > | > | (*) org-babel-default-header-args : R: > | > | Please type y, n, or !: y > `---- > > When I accept and try to actually evaluate R-code, I get > ,---- > | Wrong type argument: sequencep, R: | > `---- > > > What am I missing? > I'm not sure. For some reason Emacs thinks the variable ends at the ":" in the variable name. I'm attaching the complete example file I've used locally, please retry with that and see if the problem persists.