Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jhk0530 committed Mar 28, 2020
1 parent 4762c4d commit 5a285ee
Show file tree
Hide file tree
Showing 15 changed files with 409 additions and 21 deletions.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^polaroid\.Rproj$
^\.Rproj\.user$
^LICENSE\.md$
^\.travis\.yml$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ vignettes/*.pdf

# R Environment Variables
.Renviron
.Rproj.user
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# R for travis: see documentation at https://docs.travis-ci.com/user/languages/r

language: R
cache: packages
30 changes: 30 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Package: polaroid
Title: Create 'hexSticker' for R package with 'shiny'
Version: 0.0.0.9000
Authors@R:
person(given = "Jinhwan",
family = "Kim",
role = c("aut", "cre", "cph"),
email = "[email protected]")
Description: Create hexagonal shape sticker image.
'polaroid' can be used in user's web browser.
'polaroid' can be used in 'shinyapps.io'.
In both way, user can download created hexsticker as 'PNG' image.
'polaroid' is built based on 'argonDash', 'colourpicker' and 'hexSticker' R package.
License: MIT + file LICENSE
URL: https://github.com/jhk0530/polaroid
BugReports: https://github.com/jhk0530/polaroid/issues
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.0
Imports:
argonDash,
argonR,
colourpicker,
ggplot2,
grid,
hexSticker,
png,
shiny,
shinyWidgets

23 changes: 2 additions & 21 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,21 +1,2 @@
MIT License

Copyright (c) 2020 JH Kim

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
YEAR: 2020
COPYRIGHT HOLDER: jhk0530
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2020 jhk0530

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Generated by roxygen2: do not edit by hand

export(polaroid)
import(shiny)
28 changes: 28 additions & 0 deletions R/polaroid.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#' @title polaroid
#'
#' @description run polaroid shiny application in appDir
#' @seealso https://github.com/jhk0530/polaroid
#'
#' @import shiny
#' @return None
#'
#' @export
#'


polaroid <- function() {

appDir <- system.file("polaroid", package = "polaroid")
if (appDir == "") {
stop(
"Could not find Directory, Try re-install",
call. = FALSE
)
}

runApp(
appDir,
launch.browser = TRUE,
display.mode = "normal"
)
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
# polaroid
Shiny application to generate hexsticker

<!-- badges: start -->
[![Travis build status](https://travis-ci.org/jhk0530/polaroid.svg?branch=master)](https://travis-ci.org/jhk0530/polaroid)
<!-- badges: end -->
Binary file added inst/polaroid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 5a285ee

Please sign in to comment.