Re: [O] Difference between eval and export

2014-09-30 Thread Johannes Rainer
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 g...@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.rai...@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 g...@wisdomandwonder.com wrote:
 
 On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug rai...@krugs.de wrote:
 Grant Rettke g...@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
 g...@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




Re: [O] Difference between eval and export

2014-09-29 Thread Johannes Rainer
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 g...@wisdomandwonder.com wrote:

 On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug rai...@krugs.de wrote:
 Grant Rettke g...@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.




Re: [O] Difference between eval and export

2014-09-29 Thread Grant Rettke
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.rai...@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 g...@wisdomandwonder.com wrote:

 On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug rai...@krugs.de wrote:
 Grant Rettke g...@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
g...@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



[O] Difference between eval and export

2014-09-26 Thread Johannes Rainer
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


Re: [O] Difference between eval and export

2014-09-26 Thread Johannes Rainer
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 g...@wisdomandwonder.com wrote:

 On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
 johannes.rai...@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.




Re: [O] Difference between eval and export

2014-09-26 Thread Grant Rettke
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.rai...@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 g...@wisdomandwonder.com wrote:

 On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
 johannes.rai...@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
g...@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



Re: [O] Difference between eval and export

2014-09-26 Thread Rainer M Krug
Grant Rettke g...@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.rai...@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 g...@wisdomandwonder.com wrote:

 On Fri, Sep 26, 2014 at 5:43 AM, Johannes Rainer
 johannes.rai...@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: Raineratkrugsdotde
PGP: 0x0F52F982


pgpl1UWrc6eoh.pgp
Description: PGP signature


Re: [O] Difference between eval and export

2014-09-26 Thread Grant Rettke
On Fri, Sep 26, 2014 at 1:44 PM, Rainer M Krug rai...@krugs.de wrote:
 Grant Rettke g...@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.