Nothing
# Copyright (C) 2014 - 2015 James Balamuta, Stephane Guerrier, Roberto Molinari
#
# This file is part of GMWM R Methods Package
#
# The `gmwm` R package is free software: you can redistribute it and/or modify it
# under the terms of the Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)
# included within the packages source as the LICENSE file.
#
# The `gmwm` R package is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# You should have received a copy of the Attribution-NonCommercial-ShareAlike 4.0 International
# (CC BY-NC-SA 4.0) along with `gmwm`. If not, see <http://www.smac-group.com/licensing/>.
#' @title Install IMU Data Package
#' @description Downloads and Install the IMU Data Package to use with the GMWM Package
#' @param type A \code{string} with value \code{"ONL"} or \code{"LOCAL"}
#' @param loc A \code{string} that contains the file location.
#' @details
#' The IMU Data Package contains data from real life IMUs and is approximately a
#' 13.8 MB download.
#' @author JJB
#' @examples
#' \dontrun{
#' # Online install
#' install_imudata()
#'
#' # Local install
#' install_imudata("LOCAL","C:/Users/James/Documents/imudata_x.y.z.tar.gz")
#' }
install_imudata = function(type="ONL",loc=NULL){
type = toupper(type)
if(type == "ONL"){
install.packages("imudata", repos = "http://smac-group.com/datarepo")
}else{
if(!is.null(loc)){
message("Installing the package using a local .tar file.")
message("Note: You must have a compiler installed!")
message("The following packages are also required:")
message("ggplot2 and RcppArmadillo")
install.packages(loc, type="source")
}else{
message("To install locally, you must also set the `loc` paramter!")
}
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.