Przeglądaj źródła

added reference naming and caching Tasks

Eric Schulte 16 lat temu
rodzic
commit
1c443faa20
1 zmienionych plików z 28 dodań i 5 usunięć
  1. 28 5
      rorg.org

+ 28 - 5
rorg.org

@@ -3,7 +3,13 @@
 #+SEQ_TODO:  TODO PROPOSED | DONE DEFERRED REJECTED
 #+STARTUP: oddeven
 
-* Tasks [13/22]
+* Tasks [13/24]
+** TODO (simple caching) check for named results before source blocks
+see the TODO comment in [[file:litorgy/litorgy-ref.el::TODO%20This%20should%20explicitly%20look%20for%20resname%20lines%20before][litorgy-ref.el#litorgy-ref-resolve-reference]]
+
+** TODO name named results if source block is named
+currently this isn't happening although it should be
+
 ** TODO command line execution
 Allow source code blocks to be called form the command line.  This
 will be easy using the =sbe= function in [[file:litorgy/litorgy-table.el][litorgy-table.el]].
@@ -24,11 +30,28 @@ This will rely upon [[* resolve references to other buffers][resolve references
    argument, and the default behavior could be controlled through a
    configuration variable.
    
+#+srcname: task-trivial-vector
+#+begin_src ruby :results replace
+:scalar
+#+end_src
+
+#+resname:
+: :scalar
+
+
+   since it doesn't make sense to turn a vector into a scalar, lets
+   just add a two values...
    
-#+srcname: scalar as 
-#+begin_src language 
+   - vector :: forces the results to be a vector (potentially 1 dimensional)
+   - file :: this throws an error if the result isn't a string, and
+             tries to treat it as a path to a file.
 
-#+end_src
+   I'm just going to cram all of these into the =:results= header
+   argument.  Then if we allow multiple header arguments it should
+   work out, for example one possible header argument string could be
+   =:results replace vector file=, which would *replace* any existing
+   results forcing the results into an org-mode table, and
+   interpreting any strings as file paths.
 
 ** TODO re-implement R evaluation using ess-command or ess-execute
    I don't have any complaints with the current R evaluation code or
@@ -446,7 +469,7 @@ example in the [[* emacs lisp source reference][emacs lisp source reference]].
 
 
 
-* Bugs [9/11]
+* Bugs [9/12]
 
 ** TODO collapsing consecutive newlines in string output