Skip to content

Commit

Permalink
return invisible null
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapereirabr committed Aug 29, 2024
1 parent 78ded44 commit 23930ba
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/read_emigration.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ read_emigration <- function(year = 2010,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }

### read data
df <- arrow_open_dataset(local_file)
Expand Down
2 changes: 1 addition & 1 deletion R/read_families.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ read_families <- function(year = 2000,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }

### read data
df <- arrow_open_dataset(local_file)
Expand Down
2 changes: 1 addition & 1 deletion R/read_households.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ read_households <- function(year = 2010,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }

### read data
df <- arrow_open_dataset(local_file)
Expand Down
2 changes: 1 addition & 1 deletion R/read_mortality.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ read_mortality <- function(year = 2010,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }

### read data
df <- arrow_open_dataset(local_file)
Expand Down
2 changes: 1 addition & 1 deletion R/read_population.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ read_population <- function(year = 2010,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }


### read data
Expand Down
2 changes: 1 addition & 1 deletion R/read_tracts.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ read_tracts <- function(year = 2010,
cache = cache)

# check if download worked
if(is.null(local_file)) { return(NULL) }
if(is.null(local_file)) { return(invisible(NULL)) }

### read data
df <- arrow_open_dataset(local_file)
Expand Down

0 comments on commit 23930ba

Please sign in to comment.