## Not run:
# --------------------------------------------------------------------------------------------------
#
# These examples require Essentia to be installed:
#
# queryfile <- file("examplequery.sh","w")
# cat("ess exec \"echo -e '11,12,13\n4,5,6\n7,8,9'\" \n", file=queryfile)
# simpleecho <- read.essentia("examplequery.sh")
# print(simpleecho)
#
# --------------------------------------------------------------------------------------------------
#
# This example requires Essentia to have selected a datastore containing purchase log data:
#
# Store these lines as querypurchase.sh:
#
# ess query "select count(refID) from purchase:2014-09-01:2014-09-15 \
# where articleID>=46 group by userID"
#
# -----------------------------------------------
#
# Then run these commands in R:
#
# library(RESS)
# print(read.essentia("querypurchase.sh"))
#
#
# --------------------------------------------------------------------------------------------------
#
# The following example requires Essentia to be installed with apache log data stored in it.
#
# Store the following lines as queryapache.sh:
#
# # Query the Essentia database logsapache1 and save the sorted contents of vector1 in R as command2.
# ess exec "aq_udb -exp logsapache1:vector1 -sort pagecount -dec"
#
#
# -----------------------------------------------
#
# Then run these commands in R:
#
# library(RESS)
# mydata <- read.essentia("queryapache.sh")
#
# print(mydata)
#
#
# The references contain more extensive examples that
# fully walkthrough how to load and query the Essentia Database.
#
# ## End(Not run)
Run the code above in your browser using DataLab