ess

Emacs ess auto-complete

自古美人都是妖i 提交于 2019-12-19 10:12:04
问题 I am a R user, I want to use R in emacs. But, I am in trouble with customizing ess in emacs. I have installed the auto-complete packages and the latest ess in my emacs. But when I run r in emacs, the auto-complete don't work well. When I type app, I suppose to show like the image in (http://www.emacswiki.org/pics/static/ess-ac3) , but in my emacs neither of the auto-complete nor the yellow part shows. My OS: ubuntu 12.04 amd64 my ~/.emacs file ;; Auto-complete (add-to-list 'load-path "~/

Emacs autocomplete-mode extension for ESS and R

杀马特。学长 韩版系。学妹 提交于 2019-12-18 13:02:48
问题 Is there an R-extension to Emacs autocomplete-mode that can be used with ESS? If the extension doesn't exist I'd also appreciate any hints for writing one! 回答1: There is an ac-source for R here. I recall struggling with it and finally wrote my own which at that time was much faster, but buggy since I didn't manage to make prefix regexp work properly. EDIT: the newest ESS (only svn currently) has out-of-the-box integration with auto-complete. I have added the instructions to the wiki. 回答2:

Recommendations for developing Sweave documents

佐手、 提交于 2019-12-18 10:13:59
问题 I'm looking to streamline my Sweave document creation, and I'd like to hear about people's current setups. I feel like the holy grail goes something like this: Editing Rnw code on one half of the screen Single keybinding compiles Sweave document and runs pdflatex View PDF on the other half of the screen; once compiled, PDF is refreshed and centered around the portion of the document you're editing If compilation has errors, replace the PDF with the results of the compilation (e.g. latex

Is there a way to install R packages using emacs?

不羁的心 提交于 2019-12-13 11:45:37
问题 I am using ESS, but every time I need to install a new package I have to use R gui. Isn't there a way to do this without leaving emacs? 回答1: C-c C-e i It will take a few seconds to load all packages. 回答2: From help(Startup) : ## Example of Rprofile.site local({ # add MASS to the default packages, set a CRAN mirror old <- getOption("defaultPackages"); r <- getOption("repos") r["CRAN"] <- "http://my.local.cran" options(defaultPackages = c(old, "MASS"), repos = r) ## (for Unix terminal users)

ESS does not find Rterm.exe on windows

为君一笑 提交于 2019-12-12 10:40:04
问题 I installed R in a directory called "X:\alphaAndOmega\R\R". So Rterm.exe (32-Bit version) is located in "X:\alphaAndOmega\R\R\bin\i386". I know that it's not a 'standard R-directory' and that "standard R-directories", like R-3.0.0 are easily recognized by ESS (at least if I add them to my PATH variable in Windows). I tried customizing my .emacs file in a way, that ESS would look for Rterm.exe in my non-standard directory, but I wasn't able to do so. I'm absolutely new to emacs and i tried

Emacs auto-complete for ESS in tooltip instead of buffer

懵懂的女人 提交于 2019-12-12 08:06:50
问题 I understand from the following resources: http://www.emacswiki.org/emacs/ESSAuto-complete http://www.emacswiki.org/emacs/AutoComplete Emacs autocomplete-mode extension for ESS and R Is it possible to get code completion for R in Emacs ESS similar to what is available in Rstudio? ...that I should have access to tooltips for auto-complete help in emacs when using ESS for R development. The last link additionally specifies that it should work out of the box with the latest ESS, and: From

Input Chinese characters not correctly echoed in ESS

早过忘川 提交于 2019-12-11 13:53:40
问题 I had this weird encoding issue for my Emacs and R environment. Display of Chinese characters are all good with my .Rprofile setting Sys.setlocale("LC_ALL","zh_CN.utf-8"); except the echo of input ones. > linkTexts[5] font "使用帮助" > functionNotExist() 错误: 没有"functionNotExist"这个函数 > fire <- "你好" > fire [1] " " As we can see, Chinese characters contained in the vector linkTexts , Chinese error messages, and input Chinese characters all can be perfectly shown, yet the echo of input characters

Emacs polymode gives error when opening file

蓝咒 提交于 2019-12-11 07:16:08
问题 I downloaded the polymode zip-file from GitHub, open the zip-file which gives a folder named polymode-master . I renamed the folder to polymode and put it on my .emacs.d folder. Then I inserted the following lines into my .emacs file: ;; Polymode (setq load-path (append '("~/.emacs.d/polymode/" "~/.emacs.d/polymode/modes") load-path)) (require 'poly-R) (require 'poly-markdown) When I open a file with emacs it gives me the following error: Warning (initialization): An error occurred while

To what extent are RegEx engines compatible with one another?

纵饮孤独 提交于 2019-12-11 04:06:24
问题 I am creating regular expressions for work in R, using ESS in Emacs as my environment. R itself uses the PCRE engine, which is written in C and C++. Question I would like to know, if I send my code to somebody else, using a different version of R, perhaps in a completely different environment, will the RegEx work all the same? How often do you face an issue like this? Have you even seen one? Logic tell me, that if the person is running my code, then they are using the same compiler etc. (of

Calling ssh with system in R shell eats subsequent commands

橙三吉。 提交于 2019-12-11 02:18:15
问题 My workflow is to send commands from an emacs buffer to an R session in emacs via the ESS package. a=0; system("ssh remotehost ls") a = a+1; When I run the three lines above in rapid succession (i.e. submit them to the R buffer), the value of a at the end is 0. When I run them slowly, a is 1. I've only had this issue running an ssh command via system. In all other cases, the commands queue up and all run sequentially. My colleagues have the exact same issue with their R/vim setup. But we don