Fall 2016 Computer Science 458 Lecture 4: 9/12/2016



  • Per piazza posting, Jieung Kim office hours: Monday and Wednesdays, 5:30 pm to 7:30pm. AKW 311.

    Assignment 1

    See Assignments


  • Demo: swirl, r studio
  • Professor Slade,
    It should work now, but does require exercise of a new option available in the updated version [swirl_options(swirl_data_dir = "~/.swirl")]:
    gari\> R
    R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
    Copyright (C) 2016 The R Foundation for Statistical Computing
    Platform: x86_64-redhat-linux-gnu (64-bit)
    R is free software and comes with ABSOLUTELY NO WARRANTY.
    You are welcome to redistribute it under certain conditions.
    Type 'license()' or 'licence()' for distribution details.
      Natural language support but running in an English locale
    R is a collaborative project with many contributors.
    Type 'contributors()' for more information and
    'citation()' on how to cite R or R packages in publications.
    Type 'demo()' for some demos, 'help()' for on-line help, or
    'help.start()' for an HTML browser interface to help.
    Type 'q()' to quit R.
    > library(swirl)
    | Hi! Type swirl() when you are ready to begin.
    > swirl_options(swirl_data_dir = "~/.swirl")
    > swirl()
    | Welcome to swirl! Please sign in. If you've been here before, use the same
    | name as you did then. If you are new, call yourself something unique.
    I was able to successfully launch a course and calculate the sum of 5 and 7. :)
    I will file a bug with upstream and ask if they will consider changing the default save directory from the package installation directory to something in $HOME.
  • No longer need to specify swirl_options. Default is ~/.swirl

  • Capital Budgeting and NPV
  • Modern Portfolio Theory