Skip to content

Commit

Permalink
Merge pull request #90 from YoungjunNa/master
Browse files Browse the repository at this point in the history
한우씨수소 정보 업데이트 (2024년 2월)
  • Loading branch information
YoungjunNa committed Feb 2, 2024
2 parents 5845176 + e9866d3 commit aab02d5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 101 deletions.
99 changes: 0 additions & 99 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -1,99 +0,0 @@
on:
push:
branches:
- master
pull_request:
branches:
- master

name: R-CMD-check

# Increment this version when we want to clear cache
env:
cache-version: v6

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: '4.1', vdiffr: true, xref: true}
- {os: macOS-latest, r: '4.1', vdiffr: true, xref: true}
- {os: ubuntu-18.04, r: 'devel', vdiffr: false, xref: true}
- {os: ubuntu-18.04, r: '4.1', vdiffr: true, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '4.0', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.6', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.5', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.4', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.3', vdiffr: false, xref: true, rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
# don't treat missing suggested packages as error
_R_CHECK_FORCE_SUGGESTS_: false
# Some packages might unavailable on the older versions, so let's ignore xref warnings
_R_CHECK_RD_XREFS_: ${{ matrix.config.xref }}
# Runs vdiffr test only on the latest version of R
VDIFFR_RUN_TESTS: ${{ matrix.config.vdiffr }}
VDIFFR_LOG_PATH: "../vdiffr.Rout.fail"

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@master
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}

- uses: r-lib/actions/setup-pandoc@master

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ env.cache-version }}-${{ runner.os }}-r-${{ matrix.config.r }}-

- name: Install system dependencies on Linux
if: runner.os == 'Linux'
run: |
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "18.04"))')
- name: Install system dependencies on macOS
if: runner.os == 'macOS'
run: |
# XQuartz is needed by vdiffr
brew install xquartz
# Use only binary packages
echo 'options(pkgType = "binary")' >> ~/.Rprofile
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
8 changes: 6 additions & 2 deletions data-raw/hanwoo_kpn/DATASET.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ library(dplyr)

names(hanwoo::hanwoo_kpn)

hanwoo_kpn <- readxl::read_excel("kpn-nias-2308.xlsx") %>%
hanwoo_kpn <- readxl::read_excel("data-raw/hanwoo_kpn/kpn-nias-2402.xlsx") %>%
janitor::clean_names(case = "lower_camel", ascii = FALSE)

glimpse(hanwoo::hanwoo_kpn)
Expand All @@ -15,14 +15,18 @@ glimpse(hanwoo_kpn)
ncol(hanwoo::hanwoo_kpn)
ncol(hanwoo_kpn)

tail(hanwoo::hanwoo_kpn)
tail(hanwoo_kpn)

data.frame(
old = names(hanwoo::hanwoo_kpn),
new = names(hanwoo_kpn)
) %>%
mutate(
diff = ifelse(old == new, TRUE, FALSE)
) %>%
filter(diff == FALSE) %>% View()
# filter(diff == FALSE) %>%
pull(diff) %>% table()

names(hanwoo::hanwoo_kpn)
names(hanwoo_kpn)
Expand Down
Binary file added data-raw/hanwoo_kpn/kpn-nias-2402.xlsx
Binary file not shown.
Binary file modified data/hanwoo_kpn.rda
Binary file not shown.

0 comments on commit aab02d5

Please sign in to comment.