Discussion:
Rmd temp file for preview
meik michalke
2018-11-21 20:52:43 UTC
Permalink
hi,

could you change the name scheme for the local copies of Rmd files that are
used for rendering previews? it's currently

<orig file name>.preview_<random stuff>.Rmd

but i'd rather have something like

<orig file name>_<random stuff>.preview_Rmd

the reason is, if you use cloud services for versioning of your files, it will
upload and later delete those temp files as well, littering the server. but if
the file always ended in something static like ".preview_Rmd", you could add
that extension to an ignore file.

that is, if the current ".Rmd" ending doesn't have an impact on rendering.


viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
Thomas Friedrichsmeier
2018-11-22 08:50:04 UTC
Permalink
Hi,

On Wed, 21 Nov 2018 21:52:43 +0100
Post by meik michalke
that is, if the current ".Rmd" ending doesn't have an impact on rendering.
I'm afraid it does. We could try
<orig file name>_<random stuff>.preview.Rmd
Would that help?

Regards
Thomas
Pierre de Villemereuil
2018-11-22 09:38:22 UTC
Permalink
Hi,

If I may suggest, Kile stores its previews in /tmp/ which makes a lot of sense, maybe it's another way to solve this issue?

I have absolutely no idea how much of a hassle this would be however...

Cheers,
Pierre.
Post by Thomas Friedrichsmeier
Hi,
On Wed, 21 Nov 2018 21:52:43 +0100
Post by meik michalke
that is, if the current ".Rmd" ending doesn't have an impact on rendering.
I'm afraid it does. We could try
<orig file name>_<random stuff>.preview.Rmd
Would that help?
Regards
Thomas
Thomas Friedrichsmeier
2018-11-22 10:34:50 UTC
Permalink
Hi,

On Thu, 22 Nov 2018 10:38:22 +0100
Post by Pierre de Villemereuil
If I may suggest, Kile stores its previews in /tmp/ which makes a lot
of sense, maybe it's another way to solve this issue?
that's what we did before, and it's still where the preview _output_
files are written to. However, the problem with saving the input files
in /tmp is that .Rmd files may refer to other files by relative path,
and so those won't be available, then.

Regards
Thomas
Pierre de Villemereuil
2018-11-22 10:59:04 UTC
Permalink
I see. I'm not sure how Kile gets away with it. It disables preview when stuff are in a lower hierarchical level of the folders, for this reason I believe.

Anyway, it was just a suggestion, I'm sure you thought this through! ;)

Cheers,
Pierre
Post by Thomas Friedrichsmeier
Hi,
On Thu, 22 Nov 2018 10:38:22 +0100
Post by Pierre de Villemereuil
If I may suggest, Kile stores its previews in /tmp/ which makes a lot
of sense, maybe it's another way to solve this issue?
that's what we did before, and it's still where the preview _output_
files are written to. However, the problem with saving the input files
in /tmp is that .Rmd files may refer to other files by relative path,
and so those won't be available, then.
Regards
Thomas
meik michalke
2018-11-22 11:41:05 UTC
Permalink
hi,
Post by Thomas Friedrichsmeier
However, the problem with saving the input files
in /tmp is that .Rmd files may refer to other files by relative path,
and so those won't be available, then.
why do we have to copy the input file for preview at all? can't we simply
render the actual file and write all output to tempdir?


viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
meik michalke
2018-11-22 11:13:22 UTC
Permalink
hi,
Post by Thomas Friedrichsmeier
Post by meik michalke
that is, if the current ".Rmd" ending doesn't have an impact on rendering.
I'm afraid it does. We could try
<orig file name>_<random stuff>.preview.Rmd
Would that help?
that should work, too. i actually didn't suggest that because it's unclear to
me what could happen if there is an actual file called preview.Rmd, but maybe
that's not an issue at all. or we could use

<orig file name>_<random stuff>.rkward.preview.Rmd

just to be sure?

btw, i'm giving a presentation of the new preview feture in our colloquium
next month.


viele grüße :: m.eik
--
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
Loading...