get_gnaf: Download and unpack the latest version of G-NAF.

View source: R/get_gnaf.R

get_gnafR Documentation

Download and unpack the latest version of G-NAF.

Description

Convenience function for downloading and unpacking G-NAF

Usage

get_gnaf(
 
    url = "https://data.gov.au/data/dataset/19432f89-dc3a-4ef3-b943-5326ef1dbecc/resource/4b084096-65e4-4c8e-abbe-5e54ff85f42f/download/nov20_gnaf_pipeseparatedvalue.zip",
  dest_folder = "./",
  recursive = TRUE,
  verbose = TRUE
)

Arguments

url

A character vector identifying the root directory of where the G-NAF extract is located. Note that it will always download the most recent gnaf, despite the default URL indicating Nov 2020

dest_folder

Path where G-NAF will be downloaded to. Default is "./".

recursive

If file paths should allow to be recursively created. Default is TRUE.

verbose

A logical argument to determine if the function should be verbose or not. Default is TRUE.

Value

Returns The latest version of G-NAF.

Author(s)

Kyle Haynes, kyle@kylehaynes.com.au.


KyleHaynes/gnaf.r documentation built on April 1, 2022, 8:53 p.m.