在Covid-19检疫期间齐鲁风采群英会免费的Springer书籍的包裹

Antoine Soetewey 2020-04-26 42 minute read

更新

促销已经结束,因此无法通过R齐鲁风采群英会书籍。如果您没有及时齐鲁风采群英会书籍,您仍然可以通过此访问它们 关联.

介绍

你可能已经看到斯普林克发布了 500本书 遵循Covid-19大流行之后。根据Springer,这些教科书将在至少在7月底之前免费提供。

在本公告之后,我已经从他们的网站齐鲁风采群英会了几个统计数据和R编程教科书,我可能会在未来几周齐鲁风采群英会更多内容。

在本文中,我介绍了一个拯救我很多时间的包,这可能对我们的许多人感兴趣: {springerQuarantineBooksR} package, 由开发 renan xavier cortes..1

此套餐允许您轻松齐鲁风采群英会在Covid-19检疫期间免费齐鲁风采群英会所有(或选择)MICKER书籍。

随着这一大量的高质量资源和我的收藏 关于冠状病毒的顶级资源,我们在此检疫期间没有任何借口在此检疫期间没有阅读和学习。

在本文中,我展示:

  • 如何齐鲁风采群英会 所有可用的教科书 at once and
  • 如何齐鲁风采群英会一个 书籍子集,给定特定的标题,作者或主题

没有进一步的ADO,这里是包在实践中的工作原理。

安装

After having installed the {devtools} package, you can install the {springerQuarantineBooksR} 包裹 from GitHub and load it with:

# install.packages("devtools")
devtools::install_github("renanxcortes/springerQuarantineBooksR", force = TRUE)
library(springerQuarantineBooksR)

立即齐鲁风采群英会所有书籍

First, set the path where you would like to save all books with the setwd() function then download all of them at once with the download_springer_book_files() function. Note that it takes several minutes (depending on the speed of your internet connection) since all books combined amount for almost 8GB.

setwd("path_of_your_choice") # where you want to save the books
download_springer_book_files() # download all of them at once

您将在名为“springer_quarantine_books”的文件夹中找到所有齐鲁风采群英会的书籍(以pdf格式),由类别组织。2

If you want to download the EPUB version (or both the PDF and EPUB versions), add the filetype argument to the function:

# for EPUB version:
download_springer_book_files(filetype = "epub")

# for both PDF and EPUB versions:
download_springer_book_files(filetype = "both")

By default, it downloads only the English books. However, it is also possible to download all German books by adding the argument lan = 'ger':

download_springer_book_files(lan = 'ger')

请注意,总共有407个英文唯一标题和52个德语。

创建一个斯普林克书籍的表

Like me, if you do not know which books are offered by Springer and you do not want to download all of them, you probably may want to have an overview or a list of the released books before downloading any. For this, you can load a table containing all the titles made available by Springer into an R session with the download_springer_table() function:

springer_table <- download_springer_table()

This table can then be improved with the {DT} 包裹 to:

  • 只保留最少的信息,
  • 允许通过其标题,作者,分类或年来搜索书籍,
  • 允许齐鲁风采群英会可用书籍列表,和
  • 例如,使Springer链接可点击
# install.packages("DT")
library(DT)

springer_table$open_url <- paste0(
  '<a target="_blank" href="', # opening HTML tag
  springer_table$open_url, # href link
  '">SpringerLink</a>' # closing HTML tag
)

springer_table <- springer_table[, c(1:3, 19, 20)] # keep only relevant information

datatable(springer_table,
  rownames = FALSE, # remove row numbers
  filter = "top", # add filter on top of columns
  extensions = "Buttons", # add download buttons
  options = list(
    autoWidth = TRUE,
    dom = "Blfrtip", # location of the download buttons
    buttons = c("copy", "csv", "excel", "pdf", "print"), # download buttons
    pageLength = 5, # show first 5 entries, default is 10
    order = list(0, "asc") # order the title column by ascending order
  ),
  escape = FALSE # make URLs clickable
)

此表允许您查看哪些教科书Springer提供(以及一些信息),并允许您找到最有可能感兴趣的教科书。

Note that you can create a similar table for German books with the download_springer_table(lan = "ger") function.

只齐鲁风采群英会特定的书籍

现在您对您感兴趣的书有更好的了解,您可以通过他们的标题,作者或主题齐鲁风采群英会它们。

按标题

说您有兴趣只齐鲁风采群英会一个特定的书,您可以知道其标题。例如,假设您要齐鲁风采群英会题为“所有统计信息”的书:

download_springer_book_files(springer_books_titles = "All of Statistics")

如果您有兴趣齐鲁风采群英会多个书,请运行以下命令:

download_springer_book_files(
  springer_books_titles = c(
    "All of Statistics",
    "A Modern Introduction to Probability and Statistics"
  )
)

或者,如果您没有考虑到特定的标题,但您有兴趣使用标题中的“统计信息”单词齐鲁风采群英会所有书籍,则可以运行:

springer_table <- download_springer_table()

library(dplyr)
specific_titles_list <- springer_table %>%
  filter(str_detect(
    book_title, # look for a pattern in the book_title column
    "Statistics" # specify the word
  )) %>%
  pull(book_title)

download_springer_book_files(springer_books_titles = specific_titles_list)

小费: If you would like to download all books with the word “Statistics” or “Data Science” in the title, replace "Statistics" in the above code by "Statistics|Data Science".

由作者

如果要从特定作者齐鲁风采群英会所有书籍,可以运行:

springer_table <- download_springer_table()

# library(dplyr)
specific_titles_list <- springer_table %>%
  filter(str_detect(
    author, # look for a pattern in the author column
    "John Hunt" # specify the author
  )) %>%
  pull(book_title)

download_springer_book_files(springer_books_titles = specific_titles_list)

按主题

You can also download all textbooks covering a specific subject (see all subjects in the 学科_classification column in the summary table). For instance, here is how to download all books categorized in the Statistics subject:

springer_table <- download_springer_table()

# library(dplyr)
specific_titles_list <- springer_table %>%
  filter(str_detect(
    subject_classification, # look for a pattern in the subject_classification column
    "Statistics" # specify the subject
  )) %>%
  pull(book_title)

download_springer_book_files(springer_books_titles = specific_titles_list)

改进

下面可以实现的功能列表,以便改进包装:

  • 添加齐鲁风采群英会所有版本的一本书的可能性。目前,只能齐鲁风采群英会最新版本。
  • 如果停止,请添加恢复齐鲁风采群英会的可能性。目前,如果代码再次执行,则齐鲁风采群英会从头开始。
  • 按主题齐鲁风采群英会书籍的可能性。目前,只有可能的 标题, 作者 或者 学科.

如果您有其他改进,请随时打开GitHub上的拉出请求。

致谢

我想要感谢:

  • renan Xavier Cortes(以及所有贡献者)提供此包装
  • springer_free_books Python project which was used as inspiration to the {springerQuarantineBooksR} package
  • 最后但并非最不重要的是,斯普林人免费提供许多优秀的书籍!

谢谢阅读。我希望这篇文章能够帮助您齐鲁风采群英会并阅读Mouther在此Covid-19检疫期间提供的更高质量的材料。

一如既往,如果您有问题或与本文所涵盖的主题相关的建议,请将其添加为评论,以便其他读者可以从讨论中受益。


  1. 我感谢作者让我在博客帖子中呈现他的包裹。↩︎

  2. Note that you can change the folder name by specifying the argument destination_folder = "name_of_your_choice".↩︎



喜欢这篇文章?

获取更新 每次发布新文章。
任何垃圾邮件都没有任何垃圾邮件。
分享: