* Difference between eval and export
@ 2014-09-26 10:43 Johannes Rainer
[not found] ` <CAAjq1meS893n_=kZEaFWDKjX_PmJnF82k+8bFZXE-g0+so6LRQ@mail.gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Rainer @ 2014-09-26 10:43 UTC (permalink / raw)
To: emacs-orgmode
hi all!
I am wondering what the difference between the eval of a source block and the export of a buffer is in terms of the process in which the code is evaluated.
Is the org-export call starting a new process?
Is there a way to specify environment variables for the export process?
thanks in advance for any information!
best, jo
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
[not found] ` <CAAjq1meS893n_=kZEaFWDKjX_PmJnF82k+8bFZXE-g0+so6LRQ@mail.gmail.com>
@ 2014-09-26 13:17 ` Johannes Rainer
2014-09-26 13:20 ` Grant Rettke
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Rainer @ 2014-09-26 13:17 UTC (permalink / raw)
To: Grant Rettke, emacs-orgmode
thanks Grant for this information.
I was just wondering, because it seemed to me that some environment variables (from the shell) are present in the, while they some (LC_ALL) are not present in the export process.
In my case, the export call fails with an error message, while there is no problem if I evaluate source block per source block from the buffer.
At present I am therefore looking for a way to specify environment variables in the export process, but I have no idea how to do that...
On 26 Sep 2014, at 15:11, Grant Rettke <gcr@wisdomandwonder.com> wrote:
> On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
> <johannes.rainer@gmail.com> wrote:
>> I am wondering what the difference between the eval of a source block and the export of a buffer is in terms
>> of the process in which the code is evaluated.
>
> When you evaluate a source block, it executes in the processed defined
> by your configuration. Then the results of that evaluation are stored
> according to your configuration. For example store the results in an
> example block.
>
> Exporting is the conversion for the org file content into and file
> format. During that process, you can configure whether or not you want
> evaluation of source blocks to occur during that process.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-26 13:17 ` Johannes Rainer
@ 2014-09-26 13:20 ` Grant Rettke
2014-09-26 18:44 ` Rainer M Krug
0 siblings, 1 reply; 8+ messages in thread
From: Grant Rettke @ 2014-09-26 13:20 UTC (permalink / raw)
To: Johannes Rainer; +Cc: emacs-orgmode@gnu.org
My eye is on you post about that topic because I would also like to know.
On Fri, Sep 26, 2014 at 8:17 AM, Johannes Rainer
<johannes.rainer@gmail.com> wrote:
> thanks Grant for this information.
>
> I was just wondering, because it seemed to me that some environment variables (from the shell) are present in the, while they some (LC_ALL) are not present in the export process.
> In my case, the export call fails with an error message, while there is no problem if I evaluate source block per source block from the buffer.
>
> At present I am therefore looking for a way to specify environment variables in the export process, but I have no idea how to do that...
>
> On 26 Sep 2014, at 15:11, Grant Rettke <gcr@wisdomandwonder.com> wrote:
>
>> On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
>> <johannes.rainer@gmail.com> wrote:
>>> I am wondering what the difference between the eval of a source block and the export of a buffer is in terms
>>> of the process in which the code is evaluated.
>>
>> When you evaluate a source block, it executes in the processed defined
>> by your configuration. Then the results of that evaluation are stored
>> according to your configuration. For example store the results in an
>> example block.
>>
>> Exporting is the conversion for the org file content into and file
>> format. During that process, you can configure whether or not you want
>> evaluation of source blocks to occur during that process.
>
--
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-26 13:20 ` Grant Rettke
@ 2014-09-26 18:44 ` Rainer M Krug
2014-09-26 19:58 ` Grant Rettke
0 siblings, 1 reply; 8+ messages in thread
From: Rainer M Krug @ 2014-09-26 18:44 UTC (permalink / raw)
To: Grant Rettke; +Cc: emacs-orgmode@gnu.org, Johannes Rainer
[-- Attachment #1: Type: text/plain, Size: 1859 bytes --]
Grant Rettke <gcr@wisdomandwonder.com> writes:
> My eye is on you post about that topic because I would also like to know.
As you are using R, and if you are using sessions, what about setting
them from within R[1]?
Rainer
>
>
>
> On Fri, Sep 26, 2014 at 8:17 AM, Johannes Rainer
> <johannes.rainer@gmail.com> wrote:
>> thanks Grant for this information.
>>
>> I was just wondering, because it seemed to me that some environment
>> variables (from the shell) are present in the, while they some
>> (LC_ALL) are not present in the export process.
>> In my case, the export call fails with an error message, while there
>> is no problem if I evaluate source block per source block from the
>> buffer.
>>
>> At present I am therefore looking for a way to specify environment
>> variables in the export process, but I have no idea how to do
>> that...
>>
>> On 26 Sep 2014, at 15:11, Grant Rettke <gcr@wisdomandwonder.com> wrote:
>>
>>> On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
>>> <johannes.rainer@gmail.com> wrote:
>>>> I am wondering what the difference between the eval of a source block and the export of a buffer is in terms
>>>> of the process in which the code is evaluated.
>>>
>>> When you evaluate a source block, it executes in the processed defined
>>> by your configuration. Then the results of that evaluation are stored
>>> according to your configuration. For example store the results in an
>>> example block.
>>>
>>> Exporting is the conversion for the org file content into and file
>>> format. During that process, you can configure whether or not you want
>>> evaluation of source blocks to occur during that process.
>>
Footnotes:
[1] http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html
--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982
[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-26 18:44 ` Rainer M Krug
@ 2014-09-26 19:58 ` Grant Rettke
2014-09-29 11:14 ` Johannes Rainer
0 siblings, 1 reply; 8+ messages in thread
From: Grant Rettke @ 2014-09-26 19:58 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode@gnu.org, Johannes Rainer
On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug <Rainer@krugs.de> wrote:
> Grant Rettke <gcr@wisdomandwonder.com> writes:
>> My eye is on you post about that topic because I would also like to know.
>
> As you are using R, and if you are using sessions, what about setting
> them from within R[1]?
>
> Footnotes:
> [1] http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html
Yes indeed. I am quite interested in the general mechanism of how the
environment exists for when exports occur and in particular whether or
not it is different somehow. Right now I've delegated things between
[1] and .Renviron.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-26 19:58 ` Grant Rettke
@ 2014-09-29 11:14 ` Johannes Rainer
2014-09-29 23:32 ` Grant Rettke
0 siblings, 1 reply; 8+ messages in thread
From: Johannes Rainer @ 2014-09-29 11:14 UTC (permalink / raw)
To: Grant Rettke; +Cc: Rainer M Krug, emacs-orgmode@gnu.org
I checked the environment variables in Emacs and also in R (using Sys.getenv). all environment variables are set correctly (I am now also using “exec-path-from-shell” to make sure that Emacs is reading system environment variables).
It is absolutely strange. I only get the error when I export the org file, but not if I execute R code chunk by code chunk sequentially.
best, jo
On 26 Sep 2014, at 21:58, Grant Rettke <gcr@wisdomandwonder.com> wrote:
> On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug <Rainer@krugs.de> wrote:
>> Grant Rettke <gcr@wisdomandwonder.com> writes:
>>> My eye is on you post about that topic because I would also like to know.
>>
>> As you are using R, and if you are using sessions, what about setting
>> them from within R[1]?
>>
>> Footnotes:
>> [1] http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html
>
> Yes indeed. I am quite interested in the general mechanism of how the
> environment exists for when exports occur and in particular whether or
> not it is different somehow. Right now I've delegated things between
> [1] and .Renviron.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-29 11:14 ` Johannes Rainer
@ 2014-09-29 23:32 ` Grant Rettke
2014-09-30 6:12 ` Johannes Rainer
0 siblings, 1 reply; 8+ messages in thread
From: Grant Rettke @ 2014-09-29 23:32 UTC (permalink / raw)
To: Johannes Rainer; +Cc: Rainer M Krug, emacs-orgmode@gnu.org
How painful would it be to pare it down to the minimal example of the behavior?
On Mon, Sep 29, 2014 at 6:14 AM, Johannes Rainer
<johannes.rainer@gmail.com> wrote:
> I checked the environment variables in Emacs and also in R (using Sys.getenv). all environment variables are set correctly (I am now also using “exec-path-from-shell” to make sure that Emacs is reading system environment variables).
> It is absolutely strange. I only get the error when I export the org file, but not if I execute R code chunk by code chunk sequentially.
>
> best, jo
>
> On 26 Sep 2014, at 21:58, Grant Rettke <gcr@wisdomandwonder.com> wrote:
>
>> On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug <Rainer@krugs.de> wrote:
>>> Grant Rettke <gcr@wisdomandwonder.com> writes:
>>>> My eye is on you post about that topic because I would also like to know.
>>>
>>> As you are using R, and if you are using sessions, what about setting
>>> them from within R[1]?
>>>
>>> Footnotes:
>>> [1] http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html
>>
>> Yes indeed. I am quite interested in the general mechanism of how the
>> environment exists for when exports occur and in particular whether or
>> not it is different somehow. Right now I've delegated things between
>> [1] and .Renviron.
>
--
Grant Rettke
gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Difference between eval and export
2014-09-29 23:32 ` Grant Rettke
@ 2014-09-30 6:12 ` Johannes Rainer
0 siblings, 0 replies; 8+ messages in thread
From: Johannes Rainer @ 2014-09-30 6:12 UTC (permalink / raw)
To: Grant Rettke; +Cc: Rainer M Krug, emacs-orgmode@gnu.org
I tried to make an example that does not need a lot of input data but without success. never mind, it works if I run the code on a single cpu, or if I run it on a linux machine.
On 30 Sep 2014, at 01:32, Grant Rettke <gcr@wisdomandwonder.com> wrote:
> How painful would it be to pare it down to the minimal example of the behavior?
>
> On Mon, Sep 29, 2014 at 6:14 AM, Johannes Rainer
> <johannes.rainer@gmail.com> wrote:
>> I checked the environment variables in Emacs and also in R (using Sys.getenv). all environment variables are set correctly (I am now also using “exec-path-from-shell” to make sure that Emacs is reading system environment variables).
>> It is absolutely strange. I only get the error when I export the org file, but not if I execute R code chunk by code chunk sequentially.
>>
>> best, jo
>>
>> On 26 Sep 2014, at 21:58, Grant Rettke <gcr@wisdomandwonder.com> wrote:
>>
>>> On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug <Rainer@krugs.de> wrote:
>>>> Grant Rettke <gcr@wisdomandwonder.com> writes:
>>>>> My eye is on you post about that topic because I would also like to know.
>>>>
>>>> As you are using R, and if you are using sessions, what about setting
>>>> them from within R[1]?
>>>>
>>>> Footnotes:
>>>> [1] http://stat.ethz.ch/R-manual/R-devel/library/base/html/Sys.setenv.html
>>>
>>> Yes indeed. I am quite interested in the general mechanism of how the
>>> environment exists for when exports occur and in particular whether or
>>> not it is different somehow. Right now I've delegated things between
>>> [1] and .Renviron.
>>
>
>
>
> --
> Grant Rettke
> gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2014-09-30 6:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-26 10:43 Difference between eval and export Johannes Rainer
[not found] ` <CAAjq1meS893n_=kZEaFWDKjX_PmJnF82k+8bFZXE-g0+so6LRQ@mail.gmail.com>
2014-09-26 13:17 ` Johannes Rainer
2014-09-26 13:20 ` Grant Rettke
2014-09-26 18:44 ` Rainer M Krug
2014-09-26 19:58 ` Grant Rettke
2014-09-29 11:14 ` Johannes Rainer
2014-09-29 23:32 ` Grant Rettke
2014-09-30 6:12 ` Johannes Rainer
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).