Что делает аргумент input
в функции system () в R? Например, в приведенном ниже коде
authentication_test <- "authentication_test aws s3 ls s3://test-bucket/ > /dev/null"
system(authentication_test, input = "q")
Я не понимаю, для чего служит буква q
.
Глядя на файл справки, input
описывается как
input: if a character vector is supplied, this is copied
one string per line to a temporary file, and the standard
input of command is redirected to the file.
но мне все еще трудно понять, что именно он делает.