From: Thomas Alexander Gerds <tag@biostat.ku.dk>
To: Bastien <bzg@altern.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: can babel results show time of evaluation?
Date: Wed, 30 Jan 2013 13:26:00 +0100 [thread overview]
Message-ID: <grb615halyx3fr.fsf@linuxifsv005.sund.root.ku.dk> (raw)
In-Reply-To: <87haly2aag.fsf@bzg.ath.cx> (Bastien's message of "Wed, 30 Jan 2013 11:56:44 +0100")
Hi Bastien,
thanks for you reply, in particular for showing how to avoid
org-insert-time-stamp to convert the current-time into a string.
I should have said more clearly what I had in mind with this. I was
thinking of a reproducible report or manuscript with R source blocks
that produce some results. Here org babel allows one to enable caching
for some or all source-blocks. My proposal has two advantages:
1) when visiting the cached results of a particular block after some
time, e.g. one year later, it would be visible *when* the block was
evaluated. This can be useful, e.g., when there are several versions of
the same dataset which are used to produce the cached results.
2) sometimes it may be unclear which blocks are evaluated when running
org-babel-execute-buffer or org-export-as-x, in particular for org-babel
novices. Thus, showing the evaluation time in the results header will
help to learn how caching works.
Cheers
Thomas
Bastien <bzg@altern.org> writes:
> Hi Thomas,
>
> Thomas Alexander Gerds <tag@biostat.ku.dk> writes:
>
>> (when hash (concat "[["hash"][" (with-temp-buffer
>> (org-insert-time-stamp (current-time) 'hm)) "]]"))
>> but, not sure if that is a good idea and what other changes this
>> would require.
>
> I'm not sure too (both whether this is a good idea and whether this
> would trigger other changes)... but I'd say this is a very specific
> need, and it can be fulfilled by asking the code to insert a timestamp
> into the exported results, right?
>
> See for e.g.:
> #+BEGIN_SRC emacs-lisp :results raw
> (message ";; %s" (format-time-string (cdr org-time-stamp-custom-formats)))
> #+END_SRC
> HTH,
--
next prev parent reply other threads:[~2013-01-30 12:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 8:57 can babel results show time of evaluation? Thomas Alexander Gerds
2013-01-30 10:56 ` Bastien
2013-01-30 12:26 ` Thomas Alexander Gerds [this message]
2013-01-30 17:09 ` Eric Schulte
2013-01-30 17:26 ` Bastien
2013-01-30 17:54 ` Bastien
2013-01-30 18:38 ` Thomas Alexander Gerds
2013-01-30 21:00 ` Eric Schulte
2013-01-30 21:13 ` Achim Gratz
2013-01-31 11:05 ` Bastien
2013-01-31 10:22 ` Bastien
2013-01-30 19:22 ` Nicolas Goaziou
2013-01-30 20:58 ` Eric Schulte
2013-01-30 21:21 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=grb615halyx3fr.fsf@linuxifsv005.sund.root.ku.dk \
--to=tag@biostat.ku.dk \
--cc=bzg@altern.org \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).