Skip to content

Commit

Permalink
corrected the link
Browse files Browse the repository at this point in the history
  • Loading branch information
sammo3182 committed Mar 10, 2024
1 parent a7d3146 commit 84322b0
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 39 deletions.
54 changes: 27 additions & 27 deletions .Rhistory
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
"宁夏回族自治区",
year_from = 2015,
year_to = 2015,
convert_to = "name",
incomplete_name = "to",
province = TRUE
)
library(regioncode)
library(regioncode)
library(regioncode)
load("D:/Seafile/WW_research/01_Research/R_package/regioncode/R/sysdata.rda")
View(region_table)
names(region_data)
names(region_table)
load("D:/Seafile/WW_research/01_Research/R_package/regioncode/R/sysdata.rda")
library(regioncode)
load("D:/Seafile/WW_research/01_Research/R_package/regioncode/R/sysdata.rda")
names(region_data)
save(corruption, region_data, file = here::here("R", "sysdata.rda"))
load("D:/Seafile/WW_research/01_Research/R_package/regioncode/R/sysdata.rda")
knitr::opts_chunk$set(message = FALSE, warning = FALSE)
if(!require(regioncode)) install.packages("regioncode")
library(regioncode)
data("corruption")
# Original 2019 version
corruption$prefecture_id
# 1999 version
regioncode(data_input = corruption$prefecture_id,
convert_to = "code", # default set
year_from = 2019,
Expand Down Expand Up @@ -510,3 +483,30 @@ library(devtools)
check(manual = TRUE)
build_manual()
check(manual = TRUE)
library(regioncode)
library(devtools)
install(build_vignettes = TRUE)
check(manual = TRUE)
install(build_vignettes = TRUE)
library(regioncode)
install(build_vignettes = TRUE)
pkgdown::build_site()
## Spell checking
library(roxygen2)
ls_html <-
list.files(here("inst/tutorials"),
pattern = "*.html$",
recursive = TRUE,
full.names = TRUE)
devtools::release()
spell_check()
rhub::validate_email(email = "[email protected]", token = "345011f4ca60404abf76007e9ae89e3e")
check_rhub(email = "[email protected]")
devtools::release()
rhub::list_validated_emails()
check_rhub()
rhub::validate_email
rhub::validate_email()
check_rhub(email = "[email protected]")
devtools::release()
?release()
1 change: 1 addition & 0 deletions .Rproj.user/shared/notebooks/paths
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
D:/Seafile/WW_research/01_Research/R_package/regioncode/vignettes/regioncode-vignette.Rmd="E7AF24D8"
4 changes: 2 additions & 2 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.1.2
Date: 2024-03-07 12:16:56 UTC
SHA: bedccceb0631d628c33a648816a66a3522265f22
Date: 2024-03-09 01:07:29 UTC
SHA: a7d3146d93fe2aeb38016593aef5587dd5f65e1d
4 changes: 2 additions & 2 deletions dev/runBeforeRelease.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ library(roxygen2)

spell_check()

rhub::validate_email() # the token needs to gain from email again
rhub::validate_email(email = "[email protected]", token = "345011f4ca60404abf76007e9ae89e3e")
rhub::validate_email(email = "[email protected]") # the token needs to gain from email again
rhub::validate_email(, token = "345011f4ca60404abf76007e9ae89e3e")

check_rhub(email = "[email protected]")

Expand Down
13 changes: 7 additions & 6 deletions docs/articles/regioncode-vignette.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ pkgdown: 2.0.7
pkgdown_sha: ~
articles:
regioncode-vignette: regioncode-vignette.html
last_built: 2024-03-09T00:43Z
last_built: 2024-03-10T00:13Z

2 changes: 1 addition & 1 deletion vignettes/regioncode-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ This package aims to perform similar functions but is tailored specifically for
# Why `regioncode`?

The Chinese government assigns unique geocodes to each county, city (prefecture), and provincial-level administrative unit.
These "administrative division codes" are consistently [adjusted and updated](https://www.mca.gov.cn/article/sj/xzqh/1980/) to align with national and regional development plans [@MinZhengBu2022].
These "administrative division codes" are consistently [adjusted and updated](https://www.mca.gov.cn/mzsj/xzqh/2022/202202xzqh.html) to align with national and regional development plans [@MinZhengBu2022].
However, these adjustments may pose challenges for researchers conducting longitudinal studies or merging geo-based data from different years.
For instance, inconsistencies between map data and statistical data can result in erroneous outputs when rendering statistical data on a Chinese map.

Expand Down

0 comments on commit 84322b0

Please sign in to comment.