{"id":14069094,"url":"https://github.com/sckott/ftp","last_synced_at":"2025-04-23T20:24:43.225Z","repository":{"id":27298753,"uuid":"30772636","full_name":"sckott/ftp","owner":"sckott","description":"ftp for R","archived":false,"fork":false,"pushed_at":"2020-09-01T19:14:12.000Z","size":222,"stargazers_count":27,"open_issues_count":3,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-18T04:55:44.892Z","etag":null,"topics":["ftp","ftp-client","r","r-package","rstats"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sckott.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-13T19:39:12.000Z","updated_at":"2025-03-22T08:14:46.000Z","dependencies_parsed_at":"2022-08-26T22:41:06.519Z","dependency_job_id":null,"html_url":"https://github.com/sckott/ftp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sckott%2Fftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sckott","download_url":"https://codeload.github.com/sckott/ftp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250507319,"owners_count":21441960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ftp","ftp-client","r","r-package","rstats"],"created_at":"2024-08-13T07:06:36.118Z","updated_at":"2025-04-23T20:24:43.202Z","avatar_url":"https://github.com/sckott.png","language":"R","readme":"ftp\n===\n\n```{r echo=FALSE}\nknitr::opts_chunk$set(\n  comment = \"#\u003e\",\n  collapse = TRUE,\n  warning = FALSE,\n  message = FALSE\n)\n```\n\n[![Build Status](https://travis-ci.org/sckott/ftp.svg?branch=master)](https://travis-ci.org/sckott/ftp)\n\nAn FTP client for R\n\n**not quite ready to use yet**\n\nThe File Transfer Protocol (FTP) is a standard network protocol used for the transfer of computer files from a server to a client using the Client–server model on a computer network.\n\nSee the ftp info vignette for detailed FTP information.\n\n## Installation\n\n```{r eval=FALSE}\nremotes::install_github(\"sckott/ftp\")\n```\n\n```{r}\nlibrary('ftp')\n```\n\n## list files\n\n```{r eval=FALSE}\nftp_list(\"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/\")\nftp_list(\"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/by_year/\")\nftp_list(\"ftp://ftp.ncdc.noaa.gov/pub/data/noaa/2014/\")\n# just list files\nftp_list(\"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/\", just_list = TRUE)\n```\n\n## fetch files\n\n```{r eval=FALSE}\nurl \u003c- \"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/daily/by_year/1882.csv.gz\"\nfile \u003c- tempfile(fileext = \".csv.gz\")\nftp_fetch(url, disk = file)\nutils::read.delim(file, sep = \",\", nrows = 10, header = FALSE)\nunlink(file) # cleanup\n```\n\n## ftp client\n\nWraps an R6 method `FTPClient`\n\n```{r}\n(x \u003c- ftp_client(\"ftp://ftp.ncdc.noaa.gov/pub/data/ghcn/\"))\n```\n\nadjust settings\n\n```{r eval=FALSE}\nx$ftp_port()\nx$set_pasv()\n```\n\n\npwd, working directory\n\n```{r}\nx$pwd()\n```\n\nlist files\n\n```{r}\nx$list()\n```\n\n\u003e note that parsing isn't working totally yet :)\n\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/sckott/ftp/issues).\n* License: MIT\n* Get citation information for `ftp` in R doing `citation(package = 'ftp')`\n* Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.\n","funding_links":[],"categories":["R"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsckott%2Fftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsckott%2Fftp/lists"}