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

2023-09-23 Thread Ivan Krylov
В Thu, 21 Sep 2023 22:11:37 + Hanyu Song пишет: > Therefore, I am very surprised that the example below runs overtime, > since all it has to do is to run > reticulate::py_module_available('ctef'). If even this part is running > overtime, I am not quite sure how to deal with it. Can you show

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

2023-09-21 Thread Hanyu Song
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 code depends on a > rarely used Pyt

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

2023-09-21 Thread Duncan Murdoch
On 20/09/2023 8:03 p.m., Hanyu Song wrote: 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 <-

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

2023-09-21 Thread Ivan Krylov
On Thu, 21 Sep 2023 00:03:11 + Hanyu Song wrote: > Unfortunately, my_func runs overtime during the CRAN check. To > resolve this, do I simply use the less elegant approach as follows? > > #' \dontrun{ > #' if (reticulate::py_module_available('ctef')) { > #' res <- my_func(input1, input2) >

[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