Re: [R] Line Directives in Sweave Document

2023-06-28 Thread Duncan Murdoch
On 28/06/2023 1:39 a.m., Iris Simmons wrote: Hello, I'm trying to demonstrate the behaviour of my R package and how line directives change that behaviour. So I've got an R chunk like this: <>= { #line 1 "file1.R" fun <- function() { pkg::fun() } #line 1 "file2.R" fun(

[R] Line Directives in Sweave Document

2023-06-28 Thread Iris Simmons
Hello, I'm trying to demonstrate the behaviour of my R package and how line directives change that behaviour. So I've got an R chunk like this: <>= { #line 1 "file1.R" fun <- function() { pkg::fun() } #line 1 "file2.R" fun() } @ but when it is rendered, the line directives