-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
f5bf374
commit 5da6953
Showing
7 changed files
with
67 additions
and
15 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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Package: bitSpatial | ||
Type: Package | ||
Title: Tools for Spatial Analysis in Korean Regions | ||
Version: 0.2.1.9000 | ||
Date: 2023-02-02 | ||
Version: 0.2.2.9000 | ||
Date: 2023-02-04 | ||
Authors@R: c( | ||
person("Choonghyun", "Ryu",, "[email protected]", role = c("aut", "cre")) | ||
) | ||
|
@@ -21,6 +21,8 @@ Imports: | |
here, | ||
purrr, | ||
rlang, | ||
showtext, | ||
sysfonts, | ||
tibble, | ||
tmaptools | ||
LazyData: true | ||
|
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
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,28 @@ | ||
#' @importFrom sysfonts font_add_google font_add | ||
#' @importFrom showtext showtext_auto | ||
.onAttach <- function(libname, pkgname) { | ||
tryCatch( | ||
expr = { | ||
# Online Korean font | ||
sysfonts::font_add_google(name = "Noto Sans KR", | ||
family = "Noto Sans Korean") | ||
|
||
options(is_offline = FALSE) | ||
}, | ||
error = function(e) { | ||
options(is_offline = TRUE) | ||
|
||
packageStartupMessage("Because it is an offline environment, only offline fonts are imported.") | ||
}, | ||
finally = { | ||
# Offline Korean font | ||
font_path <- system.file("fonts", "NanumSquare", package = "bitSpatial") | ||
sysfonts::font_add( | ||
family = "NanumSquare", | ||
regular = paste(font_path, "NanumSquareOTF_acR.otf", sep = "/") | ||
) | ||
} | ||
) | ||
|
||
showtext::showtext_auto() | ||
} |
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.