Skip to content

Commit

Permalink
Merge pull request #377 from iNZightVIT/hotfix/fix-export-window
Browse files Browse the repository at this point in the history
Hotfix 4.1.4
  • Loading branch information
tmelliott committed Aug 13, 2021
2 parents a18738a + 3d86e72 commit 67d2e5b
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/install_deps.R
Expand Up @@ -2,10 +2,10 @@
github_deps <- c(
"tmelliott/gWidgets2@patch-1",
"iNZightVIT/gWidgets2RGtk2@inz",
"iNZightVIT/iNZightTools@dev",
"iNZightVIT/iNZightTools@1.11.4",
"iNZightVIT/iNZightTS@1.5.4",
"iNZightVIT/iNZightMR@2.2.5",
"iNZightVIT/iNZightPlots@2.12",
"iNZightVIT/iNZightPlots@2.13.4",
"iNZightVIT/iNZightRegression@1.2.8",
"iNZightVIT/iNZightModules@2.5.3"
)
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
@@ -1,8 +1,8 @@
Package: iNZight
Type: Package
Title: A GUI for Data Exploration and Visualisation
Version: 4.1.3
Date: 2021-07-16
Version: 4.1.4
Date: 2021-08-13
Authors@R: c(person("Tom", "Elliott", role = c("aut", "cre"),
email = "tom.elliott@auckland.ac.nz"),
person("Dineika", "Chandrananda", role = "ctb"),
Expand Down
5 changes: 5 additions & 0 deletions NEWS.Md
@@ -1,3 +1,8 @@
## iNZight 4.1.4

* fix bug introduced by readr 2.0 causing hang when grouping_mark is empty string
* fix Export Data window

## iNZight 4.1.3

* show code box when opening Add Inference panel
Expand Down
5 changes: 2 additions & 3 deletions R/iNZImportWin.R
Expand Up @@ -57,11 +57,10 @@ iNZImportWin <- setRefClass(
decimalmarks = list("Period (.)" = ".", "Comma (,)" = ","),
decMark = ".",
bigmarks = list(
"None" = "",
"Comma (,)" = ",",
"Period (.)" = "."
),
bigMark = "",
bigMark = ",",
encodings = c("UTF-8", "ISO-8859-1"),
encoding = "UTF-8",
dateformats = c("%Y-%m-%d", "%d/%m/%Y"),
Expand Down Expand Up @@ -321,7 +320,7 @@ iNZImportWin <- setRefClass(
}, # initialize()
setfile = function(...) {
svalue(filename) <<- basename(fname)
fext <<- tools::file_ext(fname)
fext <<- tolower(tools::file_ext(fname))

blockHandlers(filetype)
match <- which(
Expand Down
3 changes: 2 additions & 1 deletion R/iNZSaveWin.R
Expand Up @@ -47,8 +47,9 @@ iNZSaveWin <- setRefClass(
)

ll <- list()
ll["All files "] <- list(patterns = "*")
ll[["All files"]] <- list(patterns = "*")
filterList <- c(ll, filterList)
print(filterList)
filebrowse <- gfilebrowse(
text = "Specify a file",
action = invisible,
Expand Down
2 changes: 1 addition & 1 deletion man/iNZGUI-class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/testthat/test_clipboard.R
Expand Up @@ -12,12 +12,12 @@ demo <- "x\ty\tz
test_that("Data can be loaded from the 'clipboard'", {
cpy <- iNZClipboard$new(ui, "paste")
cpy$textIn$set_value(demo)
expect_silent(cpy$parseData())
cpy$parseData()
expect_equivalent(
cpy$dataOut$get_items(),
iNZightTools::read_text(demo, "\t")
)
expect_silent(cpy$okBtn$invoke_change_handler())
cpy$okBtn$invoke_change_handler()
expect_equivalent(
ui$getActiveData(),
iNZightTools::read_text(demo, "\t")
Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test_data_loads.R
@@ -1,5 +1,6 @@
context("Data is loaded into the UI")

# setwd('tests/testthat'); devtools::load_all()
wd <- getwd()
ui <- iNZGUI$new()
ui$initializeGui()
Expand Down

0 comments on commit 67d2e5b

Please sign in to comment.