On Fri, Jul 3, 2015 at 10:33 PM, Rich Shepard <[email protected]> wrote:
> On Fri, 3 Jul 2015, Liviu Andronic wrote:
>
>> It should. Try to inspect how the function is created, whether the
>> function object exists, if the workspace is loaded as expected, etc.
>
>
> Liviu,
>
>   The function exists in the workspace. But, I cannot list the workspace
> objects (see attached .pdf).
>
>   Also, can I hide the initial load('RData') so it does not display in the
> document? I've not yet read the Knitr book so that answer might be hidden
> within it.
>
http://yihui.name/knitr/options/

results="hide"

or
echo=FALSE

is your friend, depending on what you want to hide. Using LyX chunks,
you would right-click in Chunk to insert Options argument, and insert
the above in there.


>> At the same time it can be a pain until you get the hang of it. Right now
>> I use a mix where I prepare the data and save it in the workspace, load
>> workspace, and run needed code from there. It's not reproducible as
>> purists will have it, but it's aeons better than copy/paste...
>
>
>   I'd like to load the workspace and just run the code rather than
> reproducing all of it. If ls() won't list the stored objects then
> something's needing to be fixed.
>
A chunk MUST always be on its own paragraph. In 2.2.0 LyX will handle
it more nicely, but for now you need to make sure that this is
followed. If you use ERT, feel free to add empty lines. If Chunks,
just put it on a new paragraph.

Liviu


> Rich



-- 
Do you think you know what math is?
http://www.ideasroadshow.com/issues/ian-stewart-2013-08-02
Or what it means to be intelligent?
http://www.ideasroadshow.com/issues/john-duncan-2013-08-30
Think again:
http://www.ideasroadshow.com/library

Reply via email to