From b4168c13c687e7dd70ea6ed32442302d1ef03796 Mon Sep 17 00:00:00 2001 From: SpatLyu Date: Thu, 29 Aug 2024 17:58:53 +0800 Subject: [PATCH] update readme --- README.Rmd | 22 +++++++++------------- README.md | 26 +++++++++++--------------- 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/README.Rmd b/README.Rmd index eba7d23..23d344c 100644 --- a/README.Rmd +++ b/README.Rmd @@ -28,9 +28,16 @@ The goal of **geocn** is to provide various commonly used spatial data related t ## Installation -### Install from source +- Install development binary version from [r-universe](https://ausgis.r-universe.dev/geocn) with: -You can install the development version of *geocn* from [*github*](https://github.com/SpatLyu/geocn): +``` r +install.packages("geocn", + repos = c("https://spatlyu.r-universe.dev", + "https://cran.rstudio.com/"), + dep = TRUE) +``` + +- Install development source version from [GitHub](https://github.com/ausgis/geocn) with: ``` r # install.packages("devtools") @@ -39,17 +46,6 @@ devtools::install_github("SpatLyu/geocn", dep = T) ``` -### Install the binary version - -You can also install the binary version of **geocn** from [r-universe](https://spatlyu.r-universe.dev/geocn): - -``` r -install.packages("geocn", - repos = c("https://spatlyu.r-universe.dev", - "https://cran.rstudio.com/"), - dep = TRUE) -``` - ## Example ### Drawing a Map of China Using `ggplot2` diff --git a/README.md b/README.md index 5ee5efe..fc35417 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,18 @@ related to Chinese regions in the R programming environment. ## Installation -### Install from source +- Install development binary version from + [r-universe](https://ausgis.r-universe.dev/geocn) with: -You can install the development version of *geocn* from -[*github*](https://github.com/SpatLyu/geocn): +``` r +install.packages("geocn", + repos = c("https://spatlyu.r-universe.dev", + "https://cran.rstudio.com/"), + dep = TRUE) +``` + +- Install development source version from + [GitHub](https://github.com/ausgis/geocn) with: ``` r # install.packages("devtools") @@ -27,18 +35,6 @@ devtools::install_github("SpatLyu/geocn", dep = T) ``` -### Install the binary version - -You can also install the binary version of **geocn** from -[r-universe](https://spatlyu.r-universe.dev/geocn): - -``` r -install.packages("geocn", - repos = c("https://spatlyu.r-universe.dev", - "https://cran.rstudio.com/"), - dep = TRUE) -``` - ## Example ### Drawing a Map of China Using `ggplot2`