Thanks Coles,appreciate your quick turn around..
I have verified both the files are sitting in the same directory and i am using R CMD TSServer.R to invoke the server file which contains -
setwd("E:/TSML/ADUT")
library(plumber)
r <- plumb("TSDataUpdate.R")
#r$run(host="127.0.0.1", port=8000)
r$run(host="127.0.0.1", port=8000)
The TSDataUpdate.R contains the API.
Once i run the R CMD TSServer.R i am getting the following error. Also the same file is also getting opened in the R studio.
[13656:4044:0313/140936:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocrashreporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[13656:4044:0313/140936:VERBOSE1:crash_service.cc(142)] window handle is 00100CF6
[13656:4044:0313/140936:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\lui\AppData\Local\Temp\VSCode Crashes
[13656:4044:0313/140936:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\lui\AppData\Local\Temp\VSCode Crashes\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[13656:4044:0313/140936:VERBOSE1:crash_service_main.cc(84)] Ready to process crash requests
[13656:17652:0313/140936:VERBOSE1:crash_service.cc(323)] client start. pid = 6112
[13656:17652:0313/140937:VERBOSE1:crash_service.cc(323)] client start. pid = 18408
[20128:4704:0313/140937:VERBOSE1:crash_service_main.cc(68)] Session start. cmdline is [--reporter-url=https://ticinocrashreporter.azurewebsites.net/crash --application-name=VSCode --v=1]
[20128:4704:0313/140937:VERBOSE1:crash_service.cc(142)] window handle is 00120D86
[20128:4704:0313/140937:VERBOSE1:crash_service.cc(290)] pipe name is \\.\pipe\VSCode Crash Service
dumps at C:\Users\lui\AppData\Local\Temp\VSCode Crashes
[20128:4704:0313/140937:VERBOSE1:crash_service.cc(294)] checkpoint is C:\Users\lui\AppData\Local\Temp\VSCode Crashes\crash_checkpoint.txt
server is https://ticinocrashreporter.azurewebsites.net/crash
maximum 128 reports/day
reporter is electron-crash-service
[20128:4704:0313/140937:ERROR:crash_service.cc(301)] could not start dumper
Also when using Rscript TSServer.R i am getting the below error
E:\TSML\ADUT>Rscript TSServer.R
Error in library(plumber) : there is no package called 'plumber'
Execution halted