Skip to content

Commit f2ada85

Browse files
committed
closes #16
1 parent 84798ba commit f2ada85

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# censobr v0.6.0 dev
22

3+
* Minor changes
4+
* The function `data_dictionary()` now does not open the file when
5+
`verbose = FALSE`. Closes [#16](https://github.com/ipeaGIT/censobr/issues/16)
6+
37
* Data fixes included in this version:
48
* The census tract aggregate table of Pessoa02 from the state of Goias has been fixed
59

R/data_dictionary.R

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,12 @@ data_dictionary <- function(year,
104104
# open data dic on browser
105105
file_extension <- fs::path_ext(local_file)
106106

107-
if (file_extension %in% c('pdf', 'html')) {
108-
utils::browseURL(url = local_file)
109-
} else {
110-
open_file(path = local_file)
107+
if(verbose){
108+
if (file_extension %in% c('pdf', 'html')) {
109+
utils::browseURL(url = local_file)
110+
} else {
111+
open_file(path = local_file)
112+
}
111113
}
112114

113115
return(NULL)

0 commit comments

Comments
 (0)