Skip to content

Commit

Permalink
Updates package to 0.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjmgarnier committed Jan 25, 2019
1 parent 2fb2a5f commit 68d64fe
Show file tree
Hide file tree
Showing 73 changed files with 4,417 additions and 223 deletions.
6 changes: 6 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,8 @@
^.*\.Rproj$
^\.Rproj\.user$
.travis.yml
_pkgdown.yaml
appveyor.yml
index.Rmd
logo.*
LICENSE
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
src/*.o
src/*.so
src/*.dll
.DS_STORE
58 changes: 58 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
language: R
sudo: false
cran: http://cran.rstudio.com
cache: packages
warnings_are_errors: false
os:
- linux
- osx

r_build_args: "--no-manual --no-build-vignettes"
r_check_args: "--as-cran --ignore-vignettes --no-examples --install-args=--build"

before_install:
- fname=travis_helpers.sh
- wget -O ${fname} http://bit.ly/travis_helpers
- cat ${fname}; source ${fname}; rm ${fname}
- cat DESCRIPTION
- export PACKAGE_NAME=`package_name`
- export RCHECK_DIR=${PACKAGE_NAME}.Rcheck

after_success:
- cat ${RCHECK_DIR}/00install.out
- cat ${RCHECK_DIR}/00check.log

after_failure:
- cat ${RCHECK_DIR}/00install.out
- cat ${RCHECK_DIR}/00check.log

before_deploy:
- if [ "$TRAVIS_OS_NAME" = "osx" ];
then
PKG_TARBALL=$(ls -1t *.tgz | head -n 1);
PKG_TARBALL_WITH_R=`echo $PKG_TARBALL | sed 's/.tgz/_'"R${rver}"'.tgz/'` ;
mv ${PKG_TARBALL} ${PKG_TARBALL_WITH_R} ;
echo "Built tarball is ${PKG_TARBALL_WITH_R}" ;
fi
- if [ "$TRAVIS_OS_NAME" = "linux" ];
then
PKG_TARBALL=$(ls -1t *.tar.gz | head -n 1);
PKG_TARBALL_WITH_R=`echo $PKG_TARBALL | sed 's/.tar.gz/_'"R${rver}"'.tar.gz/'` ;
mv ${PKG_TARBALL} ${PKG_TARBALL_WITH_R} ;
echo "Built tarball is ${PKG_TARBALL_WITH_R}" ;
fi
- if [[ "${TRAVIS_OS_NAME}" = "osx" ]];
then
rm -f *.tar.gz;
fi

deploy:
provider: releases
skip_cleanup: true
api_key:
secure: pVFJPm5rdLijONI/LaVsoaUH0jUJm2DfRROO2RoQanpRWGK+3r56ZcE/lgFGiCjmKigQhbDVY6ld/6Zt9ODI7pNFlu5fuSd4nGjY3RNjXO82kNCTHMHD79NGfHriHRzuAkjV/ahs7Vzotr3G9CMjwT1cgTqwJ4K03zoenZfZlRq4UzqLbaTaUn1z1UMZEFP1s4rP3/KTNwCbDxXkPSE6WDVtO+k4oCxKz5saLWkshrbcyBY409KLZgNpjIiHFWdUEFyUqMV9mFZkwH3duIbNQlFLK1IietHgmed4In1jr5JuyMH53aqDyE7zwxZPVR+Ct/3Zs6hRgVZrPHl9edMX+UdUXz5RES5efGOM/uvOle3F3tTMLj3f2iR7QlJ8KA/LXI97mmpJo47OT/2KhJHZNw6tmHDMhcAhnT3HPGgZkUMKToMqUGL3DUcuZO0IZ4I34BkBuuxVWO5GNcOEi/HwAKpD/d1Pww7eMlPzr5lnqpjZYMcqp+dtiNT6TFnM39gLVViIDTTSmr7uosNq6n0XAt3JhS/MkoQHSxz1bAaDXNu8ZVsQsW1EiujfWDz6gYd553RpCClaVYxNUC2bqXVtLuZMcT1afjx8Z5alPMJArXZELhv/TfjvwHB4hivj/6zlmS1SknNgoLwfQD66SC9j5b76r/VhTGHKDMkDDaGPMLw=
file_glob: true
file: ${PACKAGE_NAME}*.t*gz
on:
repo: swarm-lab/${PACKAGE_NAME}
tags: true
34 changes: 24 additions & 10 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
Package: teachR
Type: Package
Title: TODO
Version: 0.1
Date: 2015-05-13
Author: Simon Garnier
Title: R Package For Distributing Web Applications For Educational Use
Version: 0.2
Authors@R: c(
person("Simon", "Garnier", email = "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-3886-3974"))
)
Maintainer: Simon Garnier <[email protected]>
Description: TODO
License: GPL (>= 3)
Description: teachR is a package for R that bundles several Shiny web
applications for educational use. The goal of teachR is to provide teachers
and educators with free, easy-to-use and interactive applications for
complementing their courses with virtual demonstrations and/or experiments.
License: GPL-3
Imports:
shiny (>= 0.11.1),
pacman (>= 0.4.1),
shinythemes (>= 1.1.1)
RoxygenNote: 5.0.1
shiny (>= 1.2.0),
pacman (>= 0.5.0),
shinythemes (>= 1.1.2),
dplyr (>= 0.7.8),
markdown (>= 0.9),
mime (>= 0.6)
Suggests:
knitr
VignetteBuilder: knitr
URL: https://swarm-lab.github.io/teachR/, https://github.com/swarm-lab/teachR
BugReports: https://github.com/swarm-lab/teachR/issues
RoxygenNote: 6.1.1
Encoding: UTF-8
21 changes: 11 additions & 10 deletions R/export_app.R
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
#' @title Export \code{\link[<teachR>:<teachR>-package]{teachR}} Apps
#' @title Export \code{teachR} Apps
#'
#' @description This function expor a Shiny app provided by the
#' \code{\link[<teachR>:<teachR>-package]{teachR}} library to a local folder on
#' @description This function exports a Shiny app provided by the
#' \code{teachR} library to a local folder on
#' a user's computer. Useful for modifying the app or running it on a Shiny
#' Server instance for example.
#'
#' @param app The name of the app to run.
#' @param app The name of the app to export.
#'
#' @param dest The destination of the app folder on the user's computer. A folder
#' with the name of the app will be created at this location.
#' with the name of the app will be created at this location.
#'
#' @return This function does not return anything.
#'
#' @author Simon Garnier: \email{garnier@@njit.edu}, \link[https://twitter.com/sjmgarnier]{@@sjmgarnier}
#'
#' @author Simon Garnier, \email{garnier@@njit.edu}
#'
#' @examples
#' # Export app to the current working directory
#' export_app("aggregation_segregation", ".")
#' \dontrun{
#' # Export app to the current working directory
#' export_app("aggregation_segregation", ".")
#' }
#'
#' @export
#'
export_app <- function(app, dest) {
app_path <- paste0(find.package("teachR"), "/apps/", app)
file.copy(from = app_path, to = dest, recursive = TRUE)
Expand Down
Loading

0 comments on commit 68d64fe

Please sign in to comment.