Re: [R-pkg-devel] A simple question regarding examples

2023-09-21 Thread Hanyu Song
ncan Murdoch Sent: Thursday, September 21, 2023 6:44 AM To: Hanyu Song ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] A simple question regarding examples On 20/09/2023 8:03 p.m., Hanyu Song wrote: > Hello, > > I have a simple question about including examples. My cod

[R-pkg-devel] A simple question regarding examples

2023-09-20 Thread Hanyu Song
Hello, I have a simple question about including examples. My code depends on a rarely used Python module, so I am using the @examplesIf tag per Hadley Wickham's advice as follows: #' @examplesIf reticulate::py_module_available('ctef') #' res <- my_func(input1, input2) Unfortunately, my_func r

[R-pkg-devel] Python module dependency

2023-09-01 Thread Hanyu Song
d$ctef$ctef(input,as.integer(k)) return(res) } Is this correct? There are not many R packages that depend on a Python module, so the resources are quite limited. Thank you for your help. Best, Hanyu Song [[alternative HTML version deleted]] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel