At present I am using this but it is not giving write figure after for test set
p <- read.csv("steel.csv")
p$Date= parse_date_time(p$Date, "mdy")
train=ts(p$data,c(2014,1),c(2019,06),12)
test=ts(p$data,c(2019,07),c(2020,06),12)
any solution please. also can be used in shiny