-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
339 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"type": [ | ||
2, | ||
2 | ||
], | ||
"data": [ | ||
"\nR version 4.3.3 (2024-02-29 ucrt) -- \"Angel Food Cake\"\nCopyright (C) 2024 The R Foundation for Statistical Computing\nPlatform: x86_64-w64-mingw32/x64 (64-bit)\n\nR is free software and comes with ABSOLUTELY NO WARRANTY.\nYou are welcome to redistribute it under certain conditions.\nType 'license()' or 'licence()' for distribution details.\n\n Natural language support but running in an English locale\n\nR is a collaborative project with many contributors.\nType 'contributors()' for more information and\n'citation()'", | ||
" on how to cite R or R packages in publications.\n\nType 'demo()' for some demos, 'help()' for on-line help, or\n'help.start()' for an HTML browser interface to help.\nType 'q()' to quit R.\n\n\nRestarting R session...\n\n" | ||
] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
ALLUSERSPROFILE="C:\\ProgramData" | ||
APPDATA="C:\\Users\\shinm\\AppData\\Roaming" | ||
CLICOLOR_FORCE="1" | ||
COMPUTERNAME="MSHIN77" | ||
CONDA_PREFIX="C:/Users/shinm/anaconda3" | ||
CURL_CA_BUNDLE="C:/PROGRA~1/R/R-43~1.3/etc/curl-ca-bundle.crt" | ||
ComSpec="C:\\WINDOWS\\system32\\cmd.exe" | ||
CommonProgramFiles="C:\\Program Files\\Common Files" | ||
CommonProgramFiles(x86)="C:\\Program Files (x86)\\Common Files" | ||
CommonProgramW6432="C:\\Program Files\\Common Files" | ||
DISPLAY=":0" | ||
DriverData="C:\\Windows\\System32\\Drivers\\DriverData" | ||
EFC_6560="1" | ||
GFORTRAN_STDERR_UNIT="-1" | ||
GFORTRAN_STDOUT_UNIT="-1" | ||
GIT_ASKPASS="rpostback-askpass" | ||
HOME="C:\\Users\\shinm" | ||
HOMEDRIVE="C:" | ||
HOMEPATH="\\Users\\shinm" | ||
LOCALAPPDATA="C:\\Users\\shinm\\AppData\\Local" | ||
LOGONSERVER="\\\\MSHIN77" | ||
MPLENGINE="tkAgg" | ||
MSYS2_ENV_CONV_EXCL="R_ARCH" | ||
NUMBER_OF_PROCESSORS="8" | ||
ORIGINAL_XDG_CURRENT_DESKTOP="undefined" | ||
OS="Windows_NT" | ||
OneDrive="C:\\Users\\shinm\\OneDrive" | ||
OneDriveConsumer="C:\\Users\\shinm\\OneDrive" | ||
PATHEXT=".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC" | ||
PROCESSOR_ARCHITECTURE="AMD64" | ||
PROCESSOR_IDENTIFIER="Intel64 Family 6 Model 140 Stepping 1, GenuineIntel" | ||
PROCESSOR_LEVEL="6" | ||
PROCESSOR_REVISION="8c01" | ||
PSModulePath="C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules" | ||
PUBLIC="C:\\Users\\Public" | ||
PYTHONIOENCODING="utf-8" | ||
Path="C:\\Users\\shinm\\anaconda3\\Scripts;C:\\Users\\shinm\\anaconda3;C:\\rtools43\\x86_64-w64-mingw32.static.posix\\bin;C:\\rtools43\\usr\\bin;C:\\Program Files\\R\\R-4.3.3\\bin\\x64;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Docker\\Docker\\resources\\bin;C:\\Users\\shinm\\anaconda3;C:\\Users\\shinm\\anaconda3\\Library\\mingw-w64\\bin;C:\\Users\\shinm\\anaconda3\\Library\\usr\\bin;C:\\Users\\shinm\\anaconda3\\Library\\bin;C:\\Users\\shinm\\anaconda3\\Scripts;C:\\Users\\shinm\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\shinm\\AppData\\Local\\GitHubDesktop\\bin;C:\\Users\\shinm\\AppData\\Local\\Programs\\Microsoft VS Code\\bin;C:\\Program Files (x86)\\Java\\jre1.8\\bin;C:\\Program Files\\RStudio\\resources\\app\\bin\\quarto\\bin;C:\\Program Files\\RStudio\\resources\\app\\bin\\postback" | ||
ProgramData="C:\\ProgramData" | ||
ProgramFiles="C:\\Program Files" | ||
ProgramFiles(x86)="C:\\Program Files (x86)" | ||
ProgramW6432="C:\\Program Files" | ||
RETICULATE_PYTHON_FALLBACK="C:/Users/shinm/anaconda3/python.exe" | ||
RMARKDOWN_MATHJAX_PATH="C:/Program Files/RStudio/resources/app/resources/mathjax-27" | ||
RSTUDIO="1" | ||
RSTUDIO_CLI_HYPERLINKS="true" | ||
RSTUDIO_CONSOLE_COLOR="256" | ||
RSTUDIO_CONSOLE_WIDTH="103" | ||
RSTUDIO_DESKTOP_EXE="C:\\Program Files\\RStudio\\rstudio.exe" | ||
RSTUDIO_MSYS_SSH="C:/Program Files/RStudio/resources/app/bin/msys-ssh-1000-18" | ||
RSTUDIO_PANDOC="C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools" | ||
RSTUDIO_PROGRAM_MODE="desktop" | ||
RSTUDIO_SESSION_PID="10596" | ||
RSTUDIO_SESSION_PORT="14157" | ||
RSTUDIO_USER_IDENTITY="shinm" | ||
RSTUDIO_WINUTILS="C:/Program Files/RStudio/resources/app/bin/winutils" | ||
RS_LOCAL_PEER="\\\\.\\pipe\\14157-rsession" | ||
RS_LOG_LEVEL="WARN" | ||
RS_RPOSTBACK_PATH="C:/Program Files/RStudio/resources/app/bin/rpostback.exe" | ||
RS_SHARED_SECRET="51962673-6a4d-4111-b69c-b6fa2bba1386" | ||
RTOOLS43_HOME="C:\\rtools43" | ||
R_ARCH="/x64" | ||
R_CLI_HAS_HYPERLINK_IDE_HELP="true" | ||
R_CLI_HAS_HYPERLINK_IDE_RUN="true" | ||
R_CLI_HAS_HYPERLINK_IDE_VIGNETTE="true" | ||
R_COMPILED_BY="gcc 12.3.0" | ||
R_DOC_DIR="C:/PROGRA~1/R/R-43~1.3/doc" | ||
R_HOME="C:/PROGRA~1/R/R-43~1.3" | ||
R_INCLUDE_DIR="C:/PROGRA~1/R/R-43~1.3/include" | ||
R_LIBS_SITE="C:/PROGRA~1/R/R-43~1.3/site-library" | ||
R_LIBS_USER="C:\\Users\\shinm\\AppData\\Local/R/win-library/4.3" | ||
R_RTOOLS43_PATH="C:\\rtools43/x86_64-w64-mingw32.static.posix/bin;C:\\rtools43/usr/bin" | ||
R_RUNTIME="ucrt" | ||
R_SHARE_DIR="C:/PROGRA~1/R/R-43~1.3/share" | ||
R_USER="C:/Users/shinm/OneDrive/문서" | ||
SESSIONNAME="Console" | ||
SSH_ASKPASS="rpostback-askpass" | ||
SystemDrive="C:" | ||
SystemRoot="C:\\WINDOWS" | ||
TEMP="C:\\Users\\shinm\\AppData\\Local\\Temp" | ||
TERM="xterm-256color" | ||
TMP="C:\\Users\\shinm\\AppData\\Local\\Temp" | ||
USERDOMAIN="MSHIN77" | ||
USERDOMAIN_ROAMINGPROFILE="MSHIN77" | ||
USERNAME="shinm" | ||
USERPROFILE="C:\\Users\\shinm" | ||
ZES_ENABLE_SYSMAN="1" | ||
windir="C:\\WINDOWS" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
install.packages("covr") | ||
install.packages("spelling") | ||
# * Tests ---- | ||
usethis::use_testthat() | ||
usethis::use_test("TextAnalysisR") | ||
# * Continuous Integration ---- | ||
usethis::use_github_action() | ||
usethis::use_coverage("codecov") | ||
usethis::use_github_action("check-standard") | ||
usethis::use_github_action("test-coverage") | ||
usethis::use_pkgdown() | ||
usethis::use_pkgdown(config_file = "_pkgdown.yml", destdir = "docs") | ||
usethis::use_pkgdown_github_pages() | ||
gh_token_help() | ||
usethis::gh_token_help() | ||
create_github_token() | ||
usethis::create_github_token() | ||
gitcreds::gitcreds_set() | ||
usethis::use_pkgdown_github_pages() | ||
devtools::document() | ||
usethis::use_github_action("pkgdown") | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
library(TextAnalysisR) | ||
?TextAnalysisR::examine_top_terms | ||
install.packages("webshot") | ||
library(TextAnalysisR) | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
library(TextAnalysisR) | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() |
Binary file not shown.
Binary file not shown.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4.3.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
datasets="C:/Program Files/R/R-4.3.3/library/datasets" | ||
grDevices="C:/Program Files/R/R-4.3.3/library/grDevices" | ||
graphics="C:/Program Files/R/R-4.3.3/library/graphics" | ||
methods="C:/Program Files/R/R-4.3.3/library/methods" | ||
stats="C:/Program Files/R/R-4.3.3/library/stats" | ||
utils="C:/Program Files/R/R-4.3.3/library/utils" |
10 changes: 10 additions & 0 deletions
10
.Rproj.user/4E54D243/ctx/ctx-14157/search_path/search_path_elements
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.GlobalEnv | ||
tools:rstudio | ||
package:stats | ||
package:graphics | ||
package:grDevices | ||
package:utils | ||
package:datasets | ||
package:methods | ||
Autoloads | ||
package:base |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
packrat_mode_on="0" | ||
r.session.client_metrics.build-console-width="72" | ||
r.session.client_metrics.console-width="103" | ||
r.session.client_metrics.device-pixel-ratio="1.250000" | ||
r.session.client_metrics.graphics-height="452" | ||
r.session.client_metrics.graphics-width="631" | ||
r_profile_on_restore="1" | ||
working_directory="C:/Users/shinm/Dropbox/apps/TextAnalysisR" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"source_window_id": "", | ||
"Source": "Source", | ||
"cursorPosition": "186,28", | ||
"scrollLine": "172" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"source_window_id": "", | ||
"Source": "Source", | ||
"cursorPosition": "82,0", | ||
"scrollLine": "73" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"source_window_id": "", | ||
"Source": "Source", | ||
"cursorPosition": "22,3", | ||
"scrollLine": "5" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"source_window_id": "", | ||
"Source": "Source" | ||
} |
154 changes: 154 additions & 0 deletions
154
.Rproj.user/4E54D243/sources/session-5fe91be4/681A5299-contents
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
# LAB 44: CREATE AN R PACKAGE STEPS ---- | ||
|
||
# RESOURCES: | ||
# - R PACKAGES: https://r-pkgs.org/index.html | ||
|
||
# LIBRARIES FOR SETUP ---- | ||
library(usethis) | ||
library(available) | ||
library(devtools) | ||
library(pkgdown) | ||
library(tidyverse) | ||
|
||
# 1.0 CHECK IF PACKAGE IS AVAILABLE ---- | ||
# - DO THIS IF GOING ON CRAN (PUBLIC) | ||
# - NOT REQUIRED FOR PRIVATE | ||
available::available("TextAnalysisR") | ||
|
||
# * Create package ---- | ||
usethis::create_package("../TextAnalysisR") | ||
|
||
# 2.0 SETTING THE PACKAGE UP ---- | ||
|
||
# * Setup git | ||
usethis::use_git() | ||
|
||
# * Code Repository ---- | ||
# - Requires setup of GH Auth Token: browse_github_token() | ||
# - Refresh your R Session once you update your '.Renviron' | ||
usethis::use_github() | ||
|
||
# * Basic Package Setup ---- | ||
usethis::use_roxygen_md() | ||
usethis::use_gpl3_license() | ||
usethis::use_readme_rmd() | ||
usethis::use_news_md() | ||
usethis::use_vignette("getting-started", title = "Getting Started with HR Churn") | ||
|
||
# * Development ---- | ||
usethis::use_pipe() | ||
usethis::use_tidy_eval() | ||
usethis::use_tibble() | ||
|
||
# * Create a Function ---- | ||
usethis::use_r("text_mining_functions.R") | ||
|
||
# * Sample Data ---- | ||
# - For testing/documentation purposes | ||
Acronym <- readr::read_csv("d") | ||
|
||
usethis::use_data() | ||
|
||
# * Tests ---- | ||
usethis::use_testthat() | ||
usethis::use_test("TextAnalysisR") | ||
|
||
# * Pkgdown Website ---- | ||
# usethis::use_pkgdown() | ||
|
||
# * Continuous Integration ---- | ||
usethis::use_github_action() | ||
# usethis::use_travis() | ||
# usethis::use_jenkins() | ||
|
||
|
||
|
||
usethis::use_github_action() | ||
|
||
usethis::use_coverage("codecov") | ||
usethis::use_github_action("check-standard") | ||
usethis::use_github_action("test-coverage") | ||
usethis::use_pkgdown() | ||
|
||
usethis::use_pkgdown(config_file = "_pkgdown.yml", destdir = "docs") | ||
usethis::use_pkgdown_github_pages() | ||
usethis::use_github_action("pkgdown") | ||
|
||
# usethis::use_pkgdown() | ||
# usethis::use_github_action("pkgdown") | ||
|
||
|
||
# usethis::use_pkgdown_github_pages() | ||
pkgdown::build_site() | ||
usethis::use_github_pages() | ||
|
||
|
||
|
||
pkgdown::deploy_to_branch( | ||
pkg = "C:/Users/shinm/Dropbox/Myself/text mining paper/textminingapp", | ||
commit_message = construct_commit_message(pkg), | ||
clean = FALSE, | ||
branch = "gh-pages", | ||
remote = "origin", | ||
github_pages = (branch == "gh-pages") | ||
) | ||
|
||
getwd() | ||
|
||
|
||
pkgdown::build_site( | ||
pkg = "C:/Users/shinm/Dropbox/Myself/text mining paper/textminingapp", | ||
examples = TRUE, | ||
run_dont_run = FALSE, | ||
seed = 1014, | ||
lazy = FALSE, | ||
override = list(), | ||
preview = NA, | ||
devel = FALSE, | ||
new_process = !devel, | ||
install = !devel | ||
# document = "DEPRECATED" | ||
) | ||
|
||
|
||
|
||
# 3.0 SAMPLE DESCRIPTION FILE ---- | ||
|
||
# Package: hr.churn.test | ||
# Title: HR Churn Workflow Tools | ||
# Version: 0.0.0.9000 | ||
# Authors@R: c( | ||
# person("Matt", "Dancho", email = "[email protected]", role = c("aut", "cre")), | ||
# person("Business Science", role = "cph")) | ||
# Description: | ||
# Human Resources churn workflow analysis tools and PowerPoint Report Automation. | ||
# License: MIT + file LICENSE | ||
# Imports: | ||
# tidyquant, | ||
# dplyr, | ||
# ggplot2, | ||
# purrr, | ||
# officer, | ||
# flextable, | ||
# cli, | ||
# magrittr, | ||
# rlang (>= 0.1.2), | ||
# stringr, | ||
# forcats, | ||
# scales, | ||
# tidyselect | ||
# Suggests: | ||
# tidyverse, | ||
# testthat, | ||
# knitr, | ||
# rmarkdown, | ||
# roxygen2 | ||
# VignetteBuilder: knitr | ||
# Encoding: UTF-8 | ||
# LazyData: true | ||
# Roxygen: list(markdown = TRUE) | ||
# RoxygenNote: 7.1.1 | ||
# Depends: | ||
# R (>= 2.10) | ||
# URL: https://github.com/mdancho84/hr.churn.test | ||
# BugReports: https://github.com/mdancho84/hr.churn.test/issues |
Empty file.
1 change: 1 addition & 0 deletions
1
.Rproj.user/shared/notebooks/FE959402-Text-Analysis/1/s/chunks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"chunk_definitions":[],"doc_write_time":1710985435} |