Tag Archives: emacs

auto-complete in ESS

Auto complete is good, it can save you times in typing and prevent typo sometimes.

2014-12-08-100418_540x105_scrot

RStudio now supports function arguments in auto complete. ESS's auto complete is more advance, it supports help page.

Read more »

Run remote R in Emacs with ESS

Emacs is a great front-end for most of the command line tools. Although R-Studio is pretty good, I think Emacs/ESS is better. I’ve always used Emacs/ESS to run R, since 2007 on Ubuntu, on Windows, and on my MacBook Pro. It gives me the same experiences across all platforms. I love the way Emacs formatting source codes, and literate programming with Roxygen supported. Unfortunately, ESS does not suport displaying plots in Emacs buffer, which has been supported by imaxima.

As I need to log into the server remotely to run some computationally intensive tasks. I always write and test codes on my MacBook and copy the Rscript file to server by scp command. The Rscript file can be run through screen terminal or using nohup command.

I am wondering is it possible to write R script on my MacBook and send the command to the R running on server directly in Emacs/ESS. After reading the ESS manual, I figure out it is very easy.
Read more »

Install Emacs on Mac

package manager

之前一直用NetBSDpkgsrc做为各种Unix-like系统的包管理系统,pkgsrc在自己内部解决依赖关系,这点对于生产环境来说,是很好的一个优点,我通常会在服务器里装一个pkgsrc,在用户目录下,维护一套UNIX软件。但是用在自己的机器上,内部解决软件依赖,就是个缺点,浪费编译时间和硬盘空间。

Mac上可用的包管理系统很多,Fink移植于Debian的apt,Gentoo的portage也支持OS X。OS X是基于BSD的系统,BSD有自己的一套包管理系统,如FreeBSD的ports和NetBSDpkgsrc,MacPorts可以看作是这一系列中的一个,不过它并不是OS X原生的,它只是OpenDarwin的子项目,所以和pkgsrc一个样,也是内部解决依赖,真正为OS X设计的原生包管理系统非Homebrew莫属,它会尽量依赖系统里已有的软件。

自从用了Homebrew之后,再也不用为系统里有两套perl和python而crazy了,之前通过pkgsrc装的软件全删掉,改Homebrew来安装和管理。
Read more »

宋词-词频

m4s0n501

最近老收到那个“消灭”文科生的词频页面。好吧,我也来跟风娱乐一下 =,=

对着原贴那样的题目,做为理科生,拿着随机数对着看啥的,哪好意思啊。搞几行代码才好装13。


Read more »

ESS:在Emacs中使用R

ESS:    Emacs Speaks Statistics

下载http://ess.r-project.org/downloads/ess/ess-5.3.4.tgz
tar xzvf ess-5.3.4.tgz
cd ess-5.3.4
make
sudo make install

在~/.emacs中加入
(load "ess-site")

运行emacs按M-X R就可从使用了。

  • Page 1 of 2
  • 1
  • 2
  • >