#
#     Creator: Daniel Dittenhafer
#
#     Created: Aug 29, 2014
#
# Description: Queries the runtimes of R, RStudio and PostgreSQL and displays 
#              version information to the console.
#

# R.version.string returns "R version 3.1.1 (2014-07-10)" for me.
R.version.string

# rstudio::versionInfo() returns  $version = "0.98.1028" and $mode = "desktop"
rstudio::versionInfo()

# PostgreSQL Version: 9.3.5.1
require("RPostgreSQL")
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv,user="postgres",password="a",dbname="postgres")
dbGetInfo(con)  # Returns, among other things, $serverVersion = "9.3.5"

# DMwR sales data set
# -------------------
# Load the Data Mining with R package
library("DMwR")

# How many data points per observation? Ans: 5
length(DMwR::sales) 

# How many observations? Ans: 401146
DMwR::sales[0]

