knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
knitr::include_graphics("inst/img/hex-awsprice.png")
The goal of awsprice is to search the price of AWS EC2 Linux in China.
在选择 AWS EC2 实例类型的时候,价格是我们十分关心的一个因素,但是 AWS 的控制台并没有自动显示价格信息。我们只能在一个静态网页上寻找感兴趣的实例的价格。由于没有查询和排序的功能,使用起来不是很方便。
knitr::include_graphics("man/figures/README-0.png")
awsprice 是一个基于 R 语言开发的工具,它可以在 AWS EC2 Linux 的定价网页上提取价格信息,并保存为数据框,供后续查询和分析使用。同时,它也是一个 RStudio 的插件,可以通过图形界面来使用。
在 RStudio 中输入以下命令:
devtools::install_github("bioxfu/awsprice")
如果是 Windows 用户,请先安装 Rtools 后再执行上面的命令。
knitr::include_graphics("man/figures/README-1.png")
knitr::include_graphics("man/figures/README-2.png")
knitr::include_graphics("man/figures/README-3.png")
可以用下面的方法保存网页上的价格表。
tb <- awsprice::fetch_price_table()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.