Closed ShixiangWang closed 4 years ago
Thanks! I will look into it.
Can you see if it is now fixed by 74b3c9b501b045fef56e294c3111932a7062726f?
@mikldk Sorry for forgetting to read this message.
This doesn't work if there are if-else
block in the \donttest
or \dontrun
. And I have question about it, hope we can discuss it. Typically I use \donttest
in @examples
to ignore the operation which may take long time, and \dontrun
to operation may cause error. Therefore, should remove just \donttest{}
and keep its content?
Can you test if it works now with 8bfe1663632fb96f89113250d981dec3d8833002?
@mikldk Yeah, it works in if-else
block now, thanks for you quick fix. I want to remove donttest{}
tag in examples
so the content can be tested, is it possible?
That should happen now? Everything in \donttest{}
and \dontrun{}
should be deleted. Is it not? See e.g. this test.
@mikldk Yeah, they will be deleted. However, in my personal practice, I think
\donttest{}
block, the content should be tested, thus only the \donttest{}
tag should be deleted.\dontrun{}
black, both the dontrun{}
tag and its content should be deleted and not shown in tests.@ShixiangWang Ahh, now I understand. Please give c1ef1f7 a go.
@mikldk Thanks, it works :).
Thanks for your tool.
Is it possible to rm
\donttest{}
in@examples
or just remove all codes in\donttest
in testthat? The same situation may be applied to\dontrun