* org-R tutorial on Worg @ 2009-02-04 4:59 Dan Davison 2009-02-04 7:23 ` JimmyWu ` (2 more replies) 0 siblings, 3 replies; 12+ messages in thread From: Dan Davison @ 2009-02-04 4:59 UTC (permalink / raw) To: emacs org-mode mailing list Hi all, I've put a tutorial for org-R up on Worg: http://orgmode.org/worg/org-tutorials/org-R/org-R.php Amongst other things, there you can see which other org users you share the greatest affinity with, according to the results of the org variable survey... I hope org-R is going to be useful to some people; I'd be happy to get comments / suggestions / bug reports, and to provide help. Code at http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el Dan p.s. Sorry for all the renaming... this is what I was previously calling org-table-R / org-tblR. So it's org-R-apply to make things happen now, and the option lines are #+R: and #+RR:. -- http://www.stats.ox.ac.uk/~davison ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 4:59 org-R tutorial on Worg Dan Davison @ 2009-02-04 7:23 ` JimmyWu 2009-02-04 12:55 ` Carsten Dominik 2009-02-04 18:30 ` Graham Smith 2 siblings, 0 replies; 12+ messages in thread From: JimmyWu @ 2009-02-04 7:23 UTC (permalink / raw) To: emacs org-mode mailing list [-- Attachment #1.1: Type: text/plain, Size: 1343 bytes --] nice On Wed, Feb 4, 2009 at 12:59 PM, Dan Davison <davison@stats.ox.ac.uk> wrote: > Hi all, > > I've put a tutorial for org-R up on Worg: > > http://orgmode.org/worg/org-tutorials/org-R/org-R.php > > Amongst other things, there you can see which other org users you > share the greatest affinity with, according to the results of the org > variable survey... > > I hope org-R is going to be useful to some people; I'd be happy to get > comments / suggestions / bug reports, and to provide help. > > Code at > > http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el<http://www.stats.ox.ac.uk/%7Edavison/software/org-R/org-R.el> > > > Dan > > p.s. Sorry for all the renaming... this is what I was previously > calling org-table-R / org-tblR. So it's org-R-apply to make things > happen now, and the option lines are #+R: and #+RR:. > > > -- > http://www.stats.ox.ac.uk/~davison <http://www.stats.ox.ac.uk/%7Edavison> > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > -- +-------------------------- | SKPotti@newsmth.net | FrozenThrone@bbs.zju88.net | FrozenThrone@ptt.cc +---------------------------- Jimmy Wu [-- Attachment #1.2: Type: text/html, Size: 2273 bytes --] [-- Attachment #2: Type: text/plain, Size: 204 bytes --] _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 4:59 org-R tutorial on Worg Dan Davison 2009-02-04 7:23 ` JimmyWu @ 2009-02-04 12:55 ` Carsten Dominik 2009-02-04 18:30 ` Graham Smith 2 siblings, 0 replies; 12+ messages in thread From: Carsten Dominik @ 2009-02-04 12:55 UTC (permalink / raw) To: Dan Davison; +Cc: emacs org-mode mailing list On Feb 4, 2009, at 5:59 AM, Dan Davison wrote: > Hi all, > > I've put a tutorial for org-R up on Worg: > > http://orgmode.org/worg/org-tutorials/org-R/org-R.php The most amazing thing for me as a package author is to see what kind of amazing stuff you never dreamed of someone will do with this. Great stuff Dan! - Carsten > > > Amongst other things, there you can see which other org users you > share the greatest affinity with, according to the results of the org > variable survey... > > I hope org-R is going to be useful to some people; I'd be happy to get > comments / suggestions / bug reports, and to provide help. > > Code at > > http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el > > > Dan > > p.s. Sorry for all the renaming... this is what I was previously > calling org-table-R / org-tblR. So it's org-R-apply to make things > happen now, and the option lines are #+R: and #+RR:. > > > -- > http://www.stats.ox.ac.uk/~davison > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 4:59 org-R tutorial on Worg Dan Davison 2009-02-04 7:23 ` JimmyWu 2009-02-04 12:55 ` Carsten Dominik @ 2009-02-04 18:30 ` Graham Smith 2009-02-04 18:50 ` Nick Dokos 2009-02-04 18:54 ` Dan Davison 2 siblings, 2 replies; 12+ messages in thread From: Graham Smith @ 2009-02-04 18:30 UTC (permalink / raw) To: emacs org-mode mailing list I'm afraid I'm struggling again. How do I get Emacs/orgmode to recognise org-R. I have tried adding (require 'org-R) to my .emacs file And I have put org-R.el in both the \orgmode\lisp directory and the orgmode\contrib\lisp directories But I get an error: error: Required feature `org-R' was not provided I just took the lead from mouse.el as it only needed (require 'org-mouse) to work But obviously there is something different with org-R I would be grateful for some help again. Thanks, Graham 2009/2/4 Dan Davison <davison@stats.ox.ac.uk>: > Hi all, > > I've put a tutorial for org-R up on Worg: > > http://orgmode.org/worg/org-tutorials/org-R/org-R.php > > Amongst other things, there you can see which other org users you > share the greatest affinity with, according to the results of the org > variable survey... > > I hope org-R is going to be useful to some people; I'd be happy to get > comments / suggestions / bug reports, and to provide help. > > Code at > > http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el > > > Dan > > p.s. Sorry for all the renaming... this is what I was previously > calling org-table-R / org-tblR. So it's org-R-apply to make things > happen now, and the option lines are #+R: and #+RR:. > > > -- > http://www.stats.ox.ac.uk/~davison > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:30 ` Graham Smith @ 2009-02-04 18:50 ` Nick Dokos 2009-02-04 19:01 ` Graham Smith 2009-02-04 18:54 ` Dan Davison 1 sibling, 1 reply; 12+ messages in thread From: Nick Dokos @ 2009-02-04 18:50 UTC (permalink / raw) To: Graham Smith; +Cc: emacs org-mode mailing list I haven't looked at org-R but given the error message, it probably does not contain a provide like so: (provide 'org-R) In that case, (require 'org-R) will not work. Perhaps Dan can add it for the next version. In the meantime, you can either add the provide line to your copy of org-R.el or try (load-library "org-R") This should work if org-R.el[c] is found in the load-path. Otherwise try (load-file "/path/to/org-R.el") HTH, Nick ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:50 ` Nick Dokos @ 2009-02-04 19:01 ` Graham Smith 0 siblings, 0 replies; 12+ messages in thread From: Graham Smith @ 2009-02-04 19:01 UTC (permalink / raw) To: emacs org-mode mailing list Nick > (load-library "org-R") Thanks, this sorted out the error messages, I'm now getting new ones but these seem to be R generated so I will now have a look at that next. Graham ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:30 ` Graham Smith 2009-02-04 18:50 ` Nick Dokos @ 2009-02-04 18:54 ` Dan Davison 2009-02-04 18:56 ` Dan Davison 2009-02-04 19:10 ` Graham Smith 1 sibling, 2 replies; 12+ messages in thread From: Dan Davison @ 2009-02-04 18:54 UTC (permalink / raw) To: Graham Smith; +Cc: emacs org-mode mailing list Hi Graham, If you have added it to the contrib/lisp directory, then you could do (add-to-list 'load-path "path\to\contrib\lisp" load-path) (load "org-R") But perhaps what I should do is add (provide 'org-R) at the end of my code. I'm pretty new to elisp so not sure but I've added that now. I'm sure someone will tell us if it's wrong. Dan p.s. if you ever have a one-off need to load the code in a file, you can use M-x load-file On Wed, Feb 04, 2009 at 06:30:23PM +0000, Graham Smith wrote: > I'm afraid I'm struggling again. How do I get Emacs/orgmode to recognise org-R. > > I have tried adding (require 'org-R) to my .emacs file > > And I have put org-R.el in both the \orgmode\lisp directory and the > orgmode\contrib\lisp directories > > But I get an error: > > error: Required feature `org-R' was not provided > > I just took the lead from mouse.el as it only needed (require > 'org-mouse) to work > > But obviously there is something different with org-R > > I would be grateful for some help again. > > Thanks, > > Graham > > > 2009/2/4 Dan Davison <davison@stats.ox.ac.uk>: > > Hi all, > > > > I've put a tutorial for org-R up on Worg: > > > > http://orgmode.org/worg/org-tutorials/org-R/org-R.php > > > > Amongst other things, there you can see which other org users you > > share the greatest affinity with, according to the results of the org > > variable survey... > > > > I hope org-R is going to be useful to some people; I'd be happy to get > > comments / suggestions / bug reports, and to provide help. > > > > Code at > > > > http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el > > > > > > Dan > > > > p.s. Sorry for all the renaming... this is what I was previously > > calling org-table-R / org-tblR. So it's org-R-apply to make things > > happen now, and the option lines are #+R: and #+RR:. > > > > > > -- > > http://www.stats.ox.ac.uk/~davison > > > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Remember: use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- http://www.stats.ox.ac.uk/~davison ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:54 ` Dan Davison @ 2009-02-04 18:56 ` Dan Davison 2009-02-05 8:04 ` Graham Smith 2009-02-04 19:10 ` Graham Smith 1 sibling, 1 reply; 12+ messages in thread From: Dan Davison @ 2009-02-04 18:56 UTC (permalink / raw) To: Graham Smith, emacs org-mode mailing list On Wed, Feb 04, 2009 at 01:54:25PM -0500, Dan Davison wrote: > Hi Graham, > > If you have added it to the contrib/lisp directory, then you could do > > (add-to-list 'load-path "path\to\contrib\lisp" load-path) Sorry, some nonsense crept in there. That should be (add-to-list 'load-path "path\to\contrib\lisp") > (load "org-R") > > But perhaps what I should do is add > > (provide 'org-R) > > at the end of my code. I'm pretty new to elisp so not sure but I've > added that now. I'm sure someone will tell us if it's wrong. > > Dan > > p.s. if you ever have a one-off need to load the code in a file, you > can use > M-x load-file > > On Wed, Feb 04, 2009 at 06:30:23PM +0000, Graham Smith wrote: > > I'm afraid I'm struggling again. How do I get Emacs/orgmode to recognise org-R. > > > > I have tried adding (require 'org-R) to my .emacs file > > > > And I have put org-R.el in both the \orgmode\lisp directory and the > > orgmode\contrib\lisp directories > > > > But I get an error: > > > > error: Required feature `org-R' was not provided > > > > I just took the lead from mouse.el as it only needed (require > > 'org-mouse) to work > > > > But obviously there is something different with org-R > > > > I would be grateful for some help again. > > > > Thanks, > > > > Graham > > > > > > 2009/2/4 Dan Davison <davison@stats.ox.ac.uk>: > > > Hi all, > > > > > > I've put a tutorial for org-R up on Worg: > > > > > > http://orgmode.org/worg/org-tutorials/org-R/org-R.php > > > > > > Amongst other things, there you can see which other org users you > > > share the greatest affinity with, according to the results of the org > > > variable survey... > > > > > > I hope org-R is going to be useful to some people; I'd be happy to get > > > comments / suggestions / bug reports, and to provide help. > > > > > > Code at > > > > > > http://www.stats.ox.ac.uk/~davison/software/org-R/org-R.el > > > > > > > > > Dan > > > > > > p.s. Sorry for all the renaming... this is what I was previously > > > calling org-table-R / org-tblR. So it's org-R-apply to make things > > > happen now, and the option lines are #+R: and #+RR:. > > > > > > > > > -- > > > http://www.stats.ox.ac.uk/~davison > > > > > > > > > _______________________________________________ > > > Emacs-orgmode mailing list > > > Remember: use `Reply All' to send replies to the list. > > > Emacs-orgmode@gnu.org > > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > > > > > > > > _______________________________________________ > > Emacs-orgmode mailing list > > Remember: use `Reply All' to send replies to the list. > > Emacs-orgmode@gnu.org > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- > http://www.stats.ox.ac.uk/~davison -- http://www.stats.ox.ac.uk/~davison ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:56 ` Dan Davison @ 2009-02-05 8:04 ` Graham Smith 2009-02-05 14:58 ` Dan Davison 0 siblings, 1 reply; 12+ messages in thread From: Graham Smith @ 2009-02-05 8:04 UTC (permalink / raw) To: emacs org-mode mailing list Dan, I'm working through the tutorial and not got very far :-( #+TBLNAME:continuous-data | | |-------------------| | -4.76347066844695 | | -1.83010300550287 | | -3.62646358009839 | | -3.06483847781371 | | -3.29886543850004 | | -3.33136718271076 | | -2.92393768071614 | | -1.81447109443947 | | -2.77876256693823 | | -3.04428187935138 | | 2.68011061127436 | | 3.8462031281076 | | 3.26010701204355 | | 3.13388406902156 | | 2.64108043612206 | | 2.79307900174277 | | 2.63510171209823 | | 0.382633073598201 | | 1.36106585545773 | | 3.15710034712042 | #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1)) #+R: title:"continuous-data" output-to-buffer:t [[file:tmp.png][histogram example]] #+R: action:hist columns:1 colour:hotpink #+R: intable:continuous-data outfile:"png" title:"histogram example" This is cut and pasted from Emacs and when I run org-R I get and error: "before first headline at position 975 in buffer RorgTest.org" Have you any suggestions ? Thanks, Graham ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-05 8:04 ` Graham Smith @ 2009-02-05 14:58 ` Dan Davison 2009-02-05 15:10 ` Graham Smith 0 siblings, 1 reply; 12+ messages in thread From: Dan Davison @ 2009-02-05 14:58 UTC (permalink / raw) To: Graham Smith; +Cc: emacs org-mode mailing list On Thu, Feb 05, 2009 at 08:04:11AM +0000, Graham Smith wrote: > Dan, > > I'm working through the tutorial and not got very far :-( > > #+TBLNAME:continuous-data > | | > |-------------------| > | -4.76347066844695 | > | -1.83010300550287 | > | -3.62646358009839 | > | -3.06483847781371 | > | -3.29886543850004 | > | -3.33136718271076 | > | -2.92393768071614 | > | -1.81447109443947 | > | -2.77876256693823 | > | -3.04428187935138 | > | 2.68011061127436 | > | 3.8462031281076 | > | 3.26010701204355 | > | 3.13388406902156 | > | 2.64108043612206 | > | 2.79307900174277 | > | 2.63510171209823 | > | 0.382633073598201 | > | 1.36106585545773 | > | 3.15710034712042 | > #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1)) > #+R: title:"continuous-data" output-to-buffer:t > > [[file:tmp.png][histogram example]] > #+R: action:hist columns:1 colour:hotpink > #+R: intable:continuous-data outfile:"png" title:"histogram example" > > This is cut and pasted from Emacs and when I run org-R I get and error: > > "before first headline at position 975 in buffer RorgTest.org" > > > Have you any suggestions ? outfile:"png" specifies that you want png output saved to a file in the org-attach dir for the current entry. However, I think that your table is not in an entry (i.e. there is no heading in the file above). So org-attach complains. I think in this case this is appropriate behaviour, rather than a bug. So, make sure that you are working in an org entry, by adding a heading above the table, e.g. * org-R histogram example #+TBLNAME:continuous-data | | |-------------------| | -3.06521250484893 | | -3.85900568302554 | | -2.31281550717715 | | -2.69410857795684 | | -2.54226178999743 | | -3.02282932827444 | | -3.39871174816189 | | -2.91887758977056 | | -3.05343781967347 | | -2.76498552588994 | | 1.46406677150374 | | 2.45199818968135 | | 1.40791932601955 | | 1.29757561821086 | | 2.48973905577704 | | 2.69374921012632 | | 2.39647207311083 | | 3.21737310446711 | | 1.22693189766015 | | 2.37953000571237 | #+RR: x<-c(rnorm(10, mean=-3, sd=1), rnorm(10, mean=3, sd=1)) #+R: title:"continuous-data" output-to-buffer:t [the following should now work.] #+R: action:hist columns:1 colour:hotpink #+R: intable:continuous-data outfile:"png" title:"histogram example" Dan > > Thanks, Graham > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode -- http://www.stats.ox.ac.uk/~davison ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-05 14:58 ` Dan Davison @ 2009-02-05 15:10 ` Graham Smith 0 siblings, 0 replies; 12+ messages in thread From: Graham Smith @ 2009-02-05 15:10 UTC (permalink / raw) To: emacs org-mode mailing list Dan, > outfile:"png" specifies that you want png output saved to a file in > the org-attach dir for the current entry. However, I think that your > table is not in an entry (i.e. there is no heading in the file > above). So org-attach complains. I think in this case this is > appropriate behaviour, rather than a bug. > > So, make sure that you are working in an org entry, by adding a > heading above the table, e.g. Indeed this was the problem. This is all very very clever :-) Graham ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: org-R tutorial on Worg 2009-02-04 18:54 ` Dan Davison 2009-02-04 18:56 ` Dan Davison @ 2009-02-04 19:10 ` Graham Smith 1 sibling, 0 replies; 12+ messages in thread From: Graham Smith @ 2009-02-04 19:10 UTC (permalink / raw) To: emacs org-mode mailing list Dan > If you have added it to the contrib/lisp directory, then you could do > > (add-to-list 'load-path "path\to\contrib\lisp" load-path) > (load "org-R") (load-library "org-R") as suggested by Nick worked I already had the load path line in my .emacs > But perhaps what I should do is add > > (provide 'org-R) It seems it might make things easier for people like me :-) > > at the end of my code. I'm pretty new to elisp so not sure but I've > added that now. I'm sure someone will tell us if it's wrong. That may be, but this is a great idea of pulling R into org-mode, and I for one will find it very useful. Many thanks for the help and for org-R. Graham ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-02-05 15:10 UTC | newest] Thread overview: 12+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2009-02-04 4:59 org-R tutorial on Worg Dan Davison 2009-02-04 7:23 ` JimmyWu 2009-02-04 12:55 ` Carsten Dominik 2009-02-04 18:30 ` Graham Smith 2009-02-04 18:50 ` Nick Dokos 2009-02-04 19:01 ` Graham Smith 2009-02-04 18:54 ` Dan Davison 2009-02-04 18:56 ` Dan Davison 2009-02-05 8:04 ` Graham Smith 2009-02-05 14:58 ` Dan Davison 2009-02-05 15:10 ` Graham Smith 2009-02-04 19:10 ` Graham Smith
Code repositories for project(s) associated with this public inbox https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).