I am trying to execute below console commands from RStudio to move to Root from myuser Rstudio.
cmd <- sprintf("sudo su -")
system(cmd)
While doing I am getting this reponse: "sudo: no tty present and no askpass program specified"
while from putty I am able to execute "sudo su -"
Can anyone please suggest the way to execute above console Commands from R/RStudio and get resolved the error.