Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在aquamacs中的R脚本中使用下划线_R_Emacs_Ess_Aquamacs - Fatal编程技术网

在aquamacs中的R脚本中使用下划线

在aquamacs中的R脚本中使用下划线,r,emacs,ess,aquamacs,R,Emacs,Ess,Aquamacs,我试图在aquamacs中编写R脚本,但每当我键入下划线作为变量名“\ux”的一部分时,编辑器会自动将其更改为“使用M-x ess切换下划线”,以取消设置此ess默认值: ess-toggle-underscore is an alias for `ess-toggle-S-assign' in `ess-s-l.el'. (ess-toggle-underscore FORCE) Set the `ess-smart-S-assign-key' (by default "_" [under

我试图在aquamacs中编写R脚本,但每当我键入下划线作为变量名“\ux”的一部分时,编辑器会自动将其更改为“使用
M-x ess切换下划线”
,以取消设置此ess默认值:

ess-toggle-underscore is an alias for `ess-toggle-S-assign' in
`ess-s-l.el'.

(ess-toggle-underscore FORCE)

Set the `ess-smart-S-assign-key' (by default "_"
[underscore]) key to _ or back to
`ess-smart-S-assign-key'.  Toggle the current definition, unless
FORCE is non-nil, where _ is set
unconditionally.

  If you as per default have `ess-smart-S-assign-key' set to
  underscore, note that using "C-q _" will always just insert the
  underscore character.
您也可以在
~/.emacs
中设置/取消设置


话虽如此,下划线在变量名中是有害的。不要相信Hadley在这件事上说的任何一个词——它始终是camelCase。

另一个方法是在emacs中再次键入下划线,ESS将切换
我更喜欢variable.names中的句点而不是camelCase。变量名中的句点应该为S3方法名保留!