SML / NJ运行外部命令/脚本

时间:2018-03-11 21:55:49

标签: shell sml smlnj

是否可以通过SML / NJ运行bash shell命令?

在Python中,它将使用像subprocess

这样的模块

我希望在sml脚本中使用library("tidyverse") data(Orange) Orange%>% mutate(age_group=if_else(age>900,"Old", if_else(age<900&age>250,"Adult", if_else(age<250,"Young",""))))%>% ggplot(aes(age_group,circumference,fill=Tree))+ geom_bar(stat="identity",position=position_dodge())+ scale_x_discrete(limits=c("Young","Adult","Old")))+ coord_flip()

1 个答案:

答案 0 :(得分:2)

可以在OS.Process结构中使用system函数。

OS.Process.system "diff fileA fileB";