“在实际代码中自动检测图表所需的信息”是什么意思?PlantUML 当前状态(链接)实际上非常适合在 R 逻辑中轻松创建简单的 UML 图表。
举个例子:
library(plantuml)
x <- '
(*) --> "Initialization"
if "Some Test" then
-->[true] "Some Activity"
--> "Another activity"
-right-> (*)
else
->[false] "Something else"
-->[Ending process] (*)
endif
'
x <- plantuml(
x
)
plot(
x = x
# vector = TRUE
)
Run Code Online (Sandbox Code Playgroud)
将绘制为
也许检查一下?