Commit Graph

85 Commits

Author SHA1 Message Date
Eric Schulte f2c334b30d DONE ensure that table ranges work 2009-05-24 10:35:13 -07:00
Eric Schulte b8ecf9596b rename `org-table-truncate-at-newline' to `litorgy-table-truncate-at-newline' 2009-05-24 10:35:05 -07:00
Eric Schulte 0e0e671cb9 DONE error on trivial R results 2009-05-23 14:22:46 -07:00
Eric Schulte 6206e23ffd DONE global variable indicating default to vector output 2009-05-23 09:05:53 -07:00
Eric Schulte 6dab411a65 DONE name named results if source block is named 2009-05-23 08:11:22 -07:00
Eric Schulte 43b7f90bb6 DONE (simple caching) check for named results before source blocks 2009-05-22 16:32:41 -07:00
Eric Schulte 19317f9b63 DONE set =:results silent= when eval with prefix argument 2009-05-22 16:23:52 -07:00
Eric Schulte 92d070c41e DONE results-type header (vector/file) [3/3] 2009-05-22 16:17:44 -07:00
Eric Schulte 9076b528ad DONE added =file= result type 2009-05-22 15:38:51 -07:00
Eric Schulte d8734f7edb DONE "multiple :results headers" 2009-05-22 15:12:51 -07:00
Eric Schulte a7b04ffe12 truncating multi-line output before inserting into org-mode tables 2009-05-22 08:33:28 -07:00
Eric Schulte b8fb32c4c4 fixed bug related to multi-line ruby code blocks 2009-05-22 08:26:26 -07:00
Eric Schulte 7cb0ecd476 fixed R bug (now properly ingests all elisp values into R) 2009-05-22 07:57:35 -07:00
Eric Schulte a79b75eb78 added TODO to litorgy-ref.el 2009-05-22 07:08:30 -07:00
Eric Schulte 3fee1b9cd8 litorgy-ref can now find #+resname lines (allowing caching of src block evaluation)
To demonstrate this I updated the example to now run a more
  interesting shell command (which happens to take a while to
  execute).
2009-05-22 07:03:30 -07:00
Eric Schulte 73163718ca litorgy-execute-src-block will again stifle results when called with truthy ARG value 2009-05-22 06:30:25 -07:00
Eric Schulte 9b7ae66e4f use the prefix arg ARG to silence the results output of litorgy-execute-src-block 2009-05-22 06:29:28 -07:00
Eric Schulte 9c378fa06b (untested) now inserting results with resname lines 2009-05-21 07:22:24 -07:00
Eric Schulte 3ccf6b8d6e source blocks can now find their results
litorgy-where-is-src-block-result
2009-05-21 06:40:04 -07:00
Eric Schulte 801345d41d added function to return the name of the current source block 2009-05-20 18:36:28 -07:00
Eric Schulte 14296239ea removed redundant :sep \t from org-tbl-to-tsv call in litorgy-R 2009-05-19 20:49:05 -07:00
Eric Schulte 700324bfbf slightly cleaner code 2009-05-19 20:42:45 -07:00
Eric Schulte 0974acd7b4 \C-c\C-c now works inside source blocks 2009-05-19 20:40:26 -07:00
Dan Davison 0c68fce725 Proposals for some minor reworkings of litorgy-R.el code added to rorg.org and as comments in litorgy-R.el 2009-05-17 20:42:04 -04:00
Dan Davison 0947747759 Added as.is=TRUE argument to read.table so that strings are kept as strings and not converted to factors 2009-05-15 00:32:17 -04:00
Eric Schulte b6f2fc7e0d fixed error w/simple ruby arrays, and added litorgy-chomp function 2009-05-14 07:12:44 -07:00
Eric Schulte 6940577d8e litorgy-src-block-regexp is now robust to trailing spaces after source name 2009-05-14 07:12:43 -07:00
Eric Schulte 48752e7d79 found some issues, and started addressing them 2009-05-14 07:12:42 -07:00
Eric Schulte 51a628bc5e added tests for calling source blocks as functions, passing all tests 2009-05-11 20:50:45 -07:00
Eric Schulte 75ca370de8 added tests, and fixed uncovered bugs
tests currently cover the following all of which are passing
  - basic execution
  - referencing tables
  - referencing other source blocks
2009-05-11 19:41:56 -07:00
Eric Schulte e140849b49 code blocks default to only exporting code 2009-05-11 09:57:21 -07:00
Eric Schulte c26c393c9c evaluate source code blocks as spreadsheet formulas in tables 2009-05-10 19:47:22 -07:00
Eric Schulte 71b6ca8005 added `sbe' for evaluation of source blocks from emacs lisp 2009-05-10 14:03:26 -07:00
Eric Schulte ce2c319496 inline source code blocks now accept header arguments 2009-05-10 08:29:30 -07:00
Eric Schulte 2794b3394f more robust against spaces in :var header arguments 2009-05-10 08:27:06 -07:00
Eric Schulte d7cbcd54d8 cleanup 2009-05-09 18:28:23 -07:00
Eric Schulte 9865923f84 now able to pass arguments to source block from header-arguments variable assignment 2009-05-09 18:28:23 -07:00
Eric Schulte 728869fef8 now passing arguments to source-blocks when the source-block is used to initialize a header-argument variable
before this is useful need to implement params merging in
  litorgy-execute-src-block, see the TODO infile
2009-05-09 18:28:21 -07:00
Eric Schulte c85ec77932 litorgy-parse-header-arguments can now handle complex arguments
specifically arguments which contain spaces or even " :" substrings
2009-05-09 18:28:21 -07:00
Eric Schulte df6db56a72 now accepting literal values to assign variables in header arguments 2009-05-08 16:20:05 -07:00
Eric Schulte c7aa80462a fixed spelling error 2009-05-08 15:28:29 -07:00
Eric Schulte 9121d6f1f1 now exporting inline source code blocks 2009-04-26 13:29:59 -07:00
Eric Schulte 1f1ea49ec5 evaluation of inline source blocks working with \C-c\C-c 2009-04-26 11:42:36 -07:00
Eric Schulte 64e01ac324 fixed bug with exportation of ruby arrays 2009-04-23 15:57:32 -07:00
Eric Schulte 9652615618 implemented selective export with :exports header argument
Acceptable export values are:

  both ---- the default, display the code and the results

  code ---- display the code inside the block but do not process

  results - process the block and replace it with the results of
            execution

  none ----- do not display either code or results upon export
2009-04-23 15:57:31 -07:00
Eric Schulte ca6dcc1897 now using the new `org-tab-first-hook' to cycle visibility of source blocks 2009-04-22 16:16:59 -07:00
Eric Schulte 2ecd87c787 fold-able (hide-able) code blocks
Using org-cycle, just hit [TAB] with the point on the =#+BEGIN_SRC=
  line of a source-code block.
2009-04-17 14:37:08 -07:00
Eric Schulte 458e10155b added and now loading htmlize.el
added a specific version as other versions of htmlize can cause
  errors when exporting source code
2009-04-06 17:34:33 -07:00
Eric Schulte f27741e468 now results of shell commands are also converted into tables when appropriate 2009-04-05 10:11:31 -07:00
Eric Schulte 9bfd6e0a80 now when R blocks return trivial vectors they are converted into scalars
Apparently there are no scalars values in R, scalars are packaged into
vectors, which would result in many single element tables

| scalar |

if we just dropped them straight to emacs-lisp without this conversion
2009-04-05 09:46:11 -07:00