Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in ability to recognise functions which load external data #81

Open
RobertASmith opened this issue Jul 8, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@RobertASmith
Copy link
Contributor

It would be useful for reviewers to see if any of the functions load external data.
This is tricky to recognise because there a lots of different functions that can load data (e.g. read.csv, fread, read_xlsx, loadRDS)
However, a list of the most common ones could at least highlight most data-loaders.
It's fairly simple to do if we are recognising external dependencies anyway.
This could be denoted by highlighting the border of a function in a different colour.

@Smit-tay
Copy link
Collaborator

Smit-tay commented Jul 8, 2024

Database and web access should also be considered.

Probably incomplete, but a good starting point:

File
read.csv()
read.table()
read.delim()
read.csv2()
readRDS()
load()
readxl::read_excel()
data.table::fread()
jsonlite::fromJSON()
readr::read_csv()
readr::read_tsv()
readr::read_delim()
haven::read_sas()
haven::read_spss()
haven::read_stata()
arrow::read_parquet()
readLines()
scan()
foreign::read.dta()
foreign::read.spss()
foreign::read.dbf()

Database
DBI::dbConnect()
dbplyr
RODBC::odbcConnect()

Website
httr::GET()
httr::POST()
httr::content()
jsonlite::fromJSON()
xml2::read_xml()

@RobertASmith RobertASmith added the enhancement New feature or request label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants