read_aozora: Download text file from Aozora Bunko

View source: R/aozora-reader.R

read_aozoraR Documentation

Download text file from Aozora Bunko

Description

Download a file from specified URL, unzip and convert it to UTF-8.

Usage

read_aozora(
  url = "https://www.aozora.gr.jp/cards/000081/files/472_ruby_654.zip",
  txtname = NULL,
  directory = file.path(getwd(), "cache")
)

Arguments

url

URL of text download link.

txtname

New file name as which text is saved. If left to NULL, keeps name of the source file.

directory

Path where new file is saved.

Value

The path to the file downloaded.


paithiov909/ldccr documentation built on Oct. 14, 2024, 3:44 a.m.