Comments (5)
Conor Nash [email protected]
on Mon, 31 Dec 2012 14:30:51 -0800 wrote:
[...]
R> R> + Error: unexpected symbol in:
"ggplot(uniquefull[Widgets.for.Session < 500]) + geom_freqpoly(aes(x=Widgets.for.Session, y=..count.., group=ktTestCggplot(uniquefull[Widgets.for.Sessi print"`
I don't see ktTestCggplot anywhere in the code you have provided. That
can mean either you are sending some other code than the one you have
pasted, or ESS inserts arbitrary text into the text, which is very
unlikely.
So what text is omitted? Can you please find a reproducible example? I
am pretty sure ESS cannot omit any text, especially with your settings.
[...]
(require 'ess-eldoc)
^^^^^^ this is not needed since long :) It is activated by default.
[...]
(auto-complete-mode t)
Also not needed ^^^^^^^^^^^^^^^. In 12.09 auto-complete is activated by
default.
(define-key inferior-ess-mode-map "\C-ct" 'ess-R-object-tooltip)
In 12.09-1 you have C-c C-d C-e - a cycling command for object
description.
from ess.
Hey vitoshka,
Thanks for your fast response. Apologies for the confusion - I left a typo in my initial message that I have since fixed. I have also removed the redundant ELisp code from my setup, as you suggested.
The error appears as TestCggplot
. From what I can see the second line of code (first line beginning with ggplot) is being truncated for some reason and the next line appended immediately afterward. This line is also truncated at the point of ggplot(uniquefull[Widgets.for.Sessi
and the line terminated.
Do you know why this truncation and appending would be happening in ESS?
from ess.
Conor Nash [email protected]
on Mon, 31 Dec 2012 15:39:24 -0800 wrote:The error appears as
TestCggplot
. From what I can see the second line of code
(first line beginning with ggplot) is being truncated for some reason and the
next line appended immediately afterward. This line is also truncated at the
point ofggplot(uniquefull[Widgets.for.Sessi
and the line terminated.
ESS is not truncating anything, that is for sure. The whole buffer text
is sent to process as it is.
Your problem is that you have some errors in the code before the one you
have reported. Particularly what is :=? There is no such thing in R.
Do you have more errors above the error you have reported? That could
happen. Because you send the whole buffer, only the first error is
relevant.
On local machine, if you activate ess-tracebug (from ESS menu) you will
get a nice arrow indicating your last input. It is very handy in such
cases. Unfortunately it is not available for ess-remote.
In such cases the best thing is to step through the code with C-c C-c or
C-RET and see where the first error occurred.
from ess.
Your problem is that you have some errors in the code before the one you
have reported. Particularly what is :=? There is no such thing in R.
I'm using the data.table package which uses the := operator (explanation here)
This is the first error reported in the buffer. The error did not occur when I ran the code line by line.
I ran the code on my local machine and I did not see the error. This would indicate that TRAMP may be at fault so I'll continue down that path of investigation. Thank you for your help!
from ess.
Conor Nash [email protected]
on Tue, 01 Jan 2013 12:19:05 -0800 wrote:I'm using the data.table package which uses the := operator
(explanation [here])
Interesting, I didn't know that. Thanks.
This is the first error reported in the buffer. The error did not
occur when I ran the code line by line.
Hm, that makes me worried. I am quite sure ESS does nothing than
process-send-string with the buffer content. But I might be wrong.
Could you please make a small debug for me? Please go to ess-inf.el to
this line (assuming you are using the recent git head or svn trunk):
╭──────── #1141 ─ /home/vitoshka/ESS/git/lisp/ess-inf.el ──
│ (t
│ (process-send-string process (ess--concat-new-line-maybe string)))))
╰──────── #1142 ─
Just before (process-send-string ... ) insert something like (message
(ess--concat-new-line-maybe string)). And eval ess-send-string function
(C-M-x)
Then execute ess-eval-buffer and go to message buffer (C-h e). Is the
string that is sent to process is indeed your buffer content? If not
then it is a problem with ESS, otherwise it's emacs or ssh problem.
For the above check to work, please make sure you have ess-eval-visibly
set to nil. You have this in your config, but just to double check. See
the ESS>Process>Eval_visibly sub-menu.
I ran the code on my local machine and I did not see the error. This
would indicate that TRAMP may be at fault so I'll continue down that
path of investigation.
Tramp? You said that you used shell -> ssh -> ess-remote.
Thanks,
Vitalie
from ess.
Related Issues (20)
- Unable to view R dired environment for package development HOT 5
- Finding the currently active ESS keymaps
- "Save workspace image?" spam when running `system(zip)` functions HOT 1
- (fill-paragraph) missing it wonderful behavior
- typo in docstring for ess-directory
- How to remove ESS style completely? HOT 3
- ess--idle-timer-function issue and time-out errors for ess-command, ess-send-string, ess-eval-line-visibly-and-step HOT 2
- ESS should not affect project definition HOT 12
- ess-r-mode newline will copy the content again when trying to insert a newline before a sentence HOT 1
- Question about sed options in Makefile HOT 1
- Inconsistency in the definition of ess-lisp-directory and ess-dir
- make fails HOT 3
- Issues with the online PDF manual HOT 2
- sometimes R process hangs up HOT 5
- C-c C-c doesn not interrupt the process in Emacs 29-3 while using ESS HOT 5
- Links in the Help Page don’t work (cannot jump to another function)
- Possible bug indenting arguments and `if`-conditions with `prev-line`?
- docstring warnings HOT 1
- Symbol's function definition is void: julia-latexsub
- `ess-S-quit-kill-buffers-p` is not respected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ess.