Posted
over 8 years
ago
by
Vitalie Spinu
Could you provide the full backtrace (M-x toggle-debug-on-error). Maybe I can
figure it out from there.
There might be multiple versions of polymode in elpa dir ... and sometimes emacs
doesn't pick the most recent one. You need to delete all from
... [More]
there manually. I
would not trust emacs package manager for that.
You cannot knit into html. .Rmd will be knitted into .md then you can export
into html.
Vitalie
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[Less]
|
Posted
over 8 years
ago
by
ottorino
It seems that the functions were loaded from .emacs.d/elpa/polymode...
I'm writing "were" because I tried to:
1) remove the elpa version, through manage emacs packages
2) install the git version (with the relevant lines "setq dir..." and
"require
... [More]
... " put in my .emacs) as follows
(setq load-path
(append '("/home/ottorino/Documenti/BitBucket/polymode/"
"/home/ottorino/Documenti/BitBucket/polymode/modes")
load-path))
(require 'poly-R)
(require 'poly-markdown)
3) retry the knitting the file to html output
Always the same problematic behavior.
Il 11/10/2015 13:36, Vitalie Spinu ha scritto:
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[Less]
|
Posted
over 8 years
ago
by
Vitalie Spinu
I cannot reproduce any of these. The last check that I can think of, is to make
sure that you are using the right polymode. It looks like it doesn't load
correctly on your system. Please check where the polymode functions are loaded
from and make
... [More]
sure that you don't have old version hanging around.
Vitalie
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[Less]
|
Posted
over 8 years
ago
by
ottorino
It gives the following error
polymode-set-weaver: Wrong type argument: stringp, nil
Il 11/10/2015 12:45, Vitalie Spinu ha scritto:
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
|
Posted
over 8 years
ago
by
Vitalie Spinu
Does it occur if you choose knitR instead of knitR-ESS on M-n W?
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
|
Posted
over 8 years
ago
by
ottorino
I already did that, but without success. I installed it twice from MELPA.
I will try again and let you know.
I will also try to clean up my probably obsolete .emacs
thanks
Edit
Luckily enough my .emacs is discretized in many init files, so I can
... [More]
exclude promptly some of them from being executed.
After reinstalling polymode and with the following .emacs, the problem
persists
################
(require 'ess-site) ;funzionava con ess 5.3.1 e rifunziona con 5.5.1
;;(load "/home/ottorino/ess/ess-5.5/lisp/ess-site")
;; added by otto on 6 09 2011
;; as from https://stat.ethz.ch/pipermail/ess-help/2011-March/006717.html
(setq ess-swv-pdflatex-commands '("pdflatex" "make"))
;; https://stat.ethz.ch/pipermail/ess-help/2011-February/006672.html
(setq ess-swv-plug-into-AUCTeX-p t)
; added by otto on 23 06 2009
; http://www.xemacs.org/Documentation/packages/html/ess_3.html
(setq ess-ask-for-ess-directory nil) ; Do not prompt for directory (nil)
;; (setq inferior-ess-same-window nil)
(setq ess-help-own-frame 'one) ; open another emacs frame with help
pages in it
;;; (setq inferior-R-args "--no-restore --no-save")
;;; added on 04 08 2009.
;;; https://stat.ethz.ch/pipermail/ess-help/2009-June/005410.html
;;; ==============================================================
;;; http://sites.google.com/site/andreaskiermeier/essmaterials
;;; added on 9 maggio 2011
==============================================================
(setq TeX-file-extensions
'("Snw" "Rnw" "nw" "tex" "sty" "cls" "ltx" "texi" "texinfo"))
(add-to-list 'auto-mode-alist '("\\.Rnw\\'" . Rnw-mode))
(add-to-list 'auto-mode-alist '("\\.Snw\\'" . Snw-mode))
(add-hook 'Rnw-mode-hook
(lambda ()
(add-to-list 'TeX-expand-list '("%rnw" file "Rnw" t) t)
(add-to-list 'TeX-command-list
'("Stangle" "R CMD Stangle %rnw"
TeX-run-command nil (latex-mode) :help "Run Stangle") t)
(add-to-list 'TeX-command-list
'("Sweave" "R CMD Sweave %rnw"
TeX-run-command nil (latex-mode) :help "Run Sweave") t)
(add-to-list 'TeX-command-list
'("LatexSweave" "%l %(mode) %s"
TeX-run-TeX nil (latex-mode) :help "Run Latex after Sweave") t)
(setq TeX-command-default "Sweave")))
;;; MARKDOWN
(add-to-list 'auto-mode-alist '("\\.md" . poly-markdown-mode))
;;; R modes
(add-to-list 'auto-mode-alist '("\\.Snw" . poly-noweb r-mode))
(add-to-list 'auto-mode-alist '("\\.Rnw" . poly-noweb r-mode))
(add-to-list 'auto-mode-alist '("\\.Rmd" . poly-markdown r-mode))
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" .
"https://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")))
Il 11/10/2015 01:14, ottorino ha scritto:
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
[Less]
|
Posted
over 8 years
ago
by
Vitalie Spinu
I cannot reproduce with emacs 24.3.1 and 25.0.5. Could you try to re-install
polymode?
Vitalie
______________________________________________
ESS-help< at >r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
|
Posted
over 8 years
ago
by
ottorino
Dear ESS users,
after many years of use, I'm eventually moving from sweave to knitr and
therefore setting up my system
Mint 17.1 Qiana -- MATE
GNU Emacs 24.3.1 (x86-64-pc-linux-gnu, GTK+ Version 3.10.7)
ESS version 13.09-1 -- R 3.0.2
with all the
... [More]
necessary packages.
I wrote my first simple "AnalisiReport.Rmd" file and tried to knit it to
an html one
From the terminal everything went well with:
library(knitr)
library(rmarkdown)
render('AnalisiReport.Rmd', "html_document")
From emacs, (polymode installed and apparently working), after
pressing M-n w and selecting knitr-ESS as weaver, I can see the knitr
processing the file in the *R* buffer, but then I get the following message
Weaving 'AnalisiReport.Rmd' with 'knitR-ESS' weaver ...
Type C-h m for help on ESS version 13.09-1
ess-tracebug mode enabled
using process '*R*'
Wrong number of arguments: (lambda (proc name) (let ((wfile
(pm--ESS-callback proc name))) (pm--display-file wfile) wfile)), 1
byte-code: End of buffer
In the meanwhile I get a AnalisiReport[woven].md file in the same
directory where the .Rmd file reside.
All the above is valid also for the minimal example found in the knitr site.
What am I missing ?
[Less]
|
Posted
over 8 years
ago
by
Patrick Connolly
|>
|> > Error during redisplay: (error Autoloading failed to define function compilation--ensure-parse) [3 times]
|>
|> This has been fixed in the development version. You will get crappy
|> error highlighting or no highlighting
... [More]
at all, but you should not
|> see the errors.
Highlighting and everything else works fine for me. The only issue is
the indenting which I can't influence.
|>
|> Generally, it's always good if you can keep up to date with ESS and
|> Emacs. Emacs is changing very fast and we have limited man power to
|> track all those changes. As most of the ESS developers are sitting
|> on recent Emacses you should expect occasional problems, like the
|> one above, with the old Emacses.
My ancient Emacs and ESS work fine except for the slightly less
desirable indenting in script files -- and that I can't use polymode.
If I can't influence indenting, I'll stick with the wisdom of the
ancients.
I am still curious to understand why Emacs 23.1 and ESS-15.09 isn't
doing what I thought the combination would.
best
[Less]
|
Posted
over 8 years
ago
by
Patrick Connolly
|> On Oct 8, 2015 4:59 PM, "Sparapani, Rodney" <rsparapa< at >mcw.edu> wrote:
|> >
|> > >
|> > > I tried what was suggested by Vitalie and Lionel but they had no
|> > > effect. After some inspection
... [More]
, I noticed this message:
|> > >
|> > > Investigating that message, I came across the suggestion that Emacs 24
|> > > is needed for ess-15.09 to work. Is that the case? I seem to recall
|> > > somewhere that there were issues with Emmacs 24. What is the story
|> > > with that?
|> > >
|> > > TIA
|> >
|> > Yes, use 24.3 or higher...
|> > http://ess.r-project.org/Manual/ess.html#Requirements
|> >
|>
|> The manual says both 23.x and 24.x are supported...
In that case, in my search for a solution, there's no point my getting
24.x installed. I get the error message when I use 23.1:
Error during redisplay: (error Autoloading failed to define function compilation--ensure-parse) [3 times].
None of the suggestions make any difference to the degree of
indenting, but everything else I do in the ~/.emacs file function
correctly. So there's something else preventing ESS Version 15.09
from doing what it's designed to do.
I'm open to suggestions as to where I should look.
best
[Less]
|