> scan関数の本体を見るために入力しましたが、scan()関数のどの部分がユーザーによるデータ入力の可能性の原因である可能性があるのかわかりません。
x=scan()(を作成して関数を呼び出すとx、空の行にいるときに対話を終了するにはEnterキーを押します)。
ここにこのビット:
.Internal(scan(file, what, nmax, sep, dec, quote, skip, nlines,
na.strings, flush, fill, strip.white, quiet, blank.lines.skip,
multi.line, comment.char, allowEscapes, encoding))
関数が戻る前の最後のコードです。.Internalこれは、スキャンを行う C コードの呼び出しです。
から?.Internal:
.Internal performs a call to an internal code which is built in
to the R interpreter.