Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Add Rstudio app
  • Start Rstudio and navigate to its endpoint
  • At the top-left, choose "New > Text File", and enter the following data, and save this file as "data.txt"
    • Notice the blank line at the end of the file - this is required

      Code Block
      titledata.txt
      1
      2
      3
      4
      5
       
  • Again at the top-left, choose "New > R Script", enter the following script, and save the file as "read.r"

    Code Block
    titleread.r
    d <- read.table("data.txt");
    summary(d);
    print('Done!');
     
  • In Rstudio's Console (bottom-left pane), run *source('~/read.r')* to execute your new r script
    • You should see your script variable values populate in the upper-right pane
    • Your script should output the following:  [1] "Done!"

Low-level Services

In general:

...