1.

If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command ____________(a) source(“commands.R”)(b) exec(“commands.R”)(c) execute(“commands.R”)(d) exect(“command.R”)This question was addressed to me in an international level competition.This intriguing question comes from Console Input and Evaluation topic in chapter History, Overview and Getting Started of R Programming

Answer»

The correct answer is (a) source(“commands.R”)

EASY EXPLANATION: For Windows, Source is ALSO available on the FILE MENU.



Discussion

No Comment Found

Related InterviewSolutions