I want to run an r script in vb.net which saves data in a .csv file. Till now i found the following approaches:
dim strCmd as String
strCmd = "R CMD BATCH" + "C:\test.R"
process.start("CMD.exe", strCmd
apparently this should work but in my case the cmd pops up (lokated in my debug folder) and nothing happens.
Another way i tried was
process.start("Rgui.exe", "C:\test.R")
Error Message: Argument "C:\test.R" ignored
this is not working either.
for my r script i just used an example
sink()
setwd("C:/")
x <- data.frame(a = I("a \" quote"), b = pi)
sink(test.csv)