WHEN YOU NEED
Executing commands from or diverting output to a file
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
> source("commands.R")
For Windows Source is also available on the File menu. The function "sink"
,
> sink("record.lis")
will divert all subsequent output from the console to an external file, record.lis. The command
> sink()
NOTE : when you collect data from the outside you can use this function for made easy with your data to use.
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
> source("commands.R")
For Windows Source is also available on the File menu. The function "
sink"
,> sink("record.lis")
will divert all subsequent output from the console to an external file, record.lis. The command
> sink()
NOTE : when you collect data from the outside you can use this function for made easy with your data to use.
ไม่มีความคิดเห็น:
แสดงความคิดเห็น