Skip to content

Commit fa814c9

Browse files
authored
Merge pull request #200 from microsoft/fix/general-bug-fixes
Fix: general bug fixes and prep for v1.6.4
2 parents 41a4567 + 154840c commit fa814c9

28 files changed

+205
-92
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ man-roxygen
2828
^Meta$
2929
^cran-comments\.md$
3030
^CRAN-RELEASE$
31+
^CRAN-SUBMISSION$

CRAN-SUBMISSION

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Version: 1.6.4
2+
Date: 2022-01-19 15:26:54 UTC
3+
SHA: 3edf7394a94cd59be8b6d83362ab0cfad81c4afa

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: wpa
22
Type: Package
33
Title: Tools for Analysing and Visualising Workplace Analytics Data
4-
Version: 1.6.3
4+
Version: 1.6.4
55
Authors@R: c(
66
person(given = "Martin", family = "Chan", role = c("aut", "cre"), email = "[email protected]"),
77
person(given = "Carlos", family = "Morales", role = "aut", email = "[email protected]"),

NEWS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# wpa 1.6.4
2+
3+
- Made `meeting_skim()` dynamic - the function will still run even if not all variables are present. (#198)
4+
- Enable text mining functions to accept `stopwords` argument as a string
5+
vector, rather than a data frame (#182)
6+
- Better handling of errors due to variable name inconsistency when loading in a
7+
Ways of Working Assessment query as opposed to a Standard Person Query (#201)
8+
19
# wpa 1.6.3
210

311
- Added `create_inc()` for creating incidence analysis

R/collaboration_area.R

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ collaboration_area <- function(data,
5959
mingroup=5,
6060
return = "plot"){
6161

62+
## Handle variable name consistency
63+
data <- qui_stan_c(data)
64+
data <- qui_stan_im(data)
65+
6266
## Handling NULL values passed to hrvar
6367
if(is.null(hrvar)){
6468
data <- totals_col(data)
@@ -71,16 +75,6 @@ collaboration_area <- function(data,
7175
## Lower case version of column names
7276
lnames <- tolower(names(data))
7377

74-
if("instant_message_hours" %in% lnames){
75-
76-
names(data) <-
77-
gsub(pattern = "instant_message_hours",
78-
replacement = "Instant_Message_hours",
79-
x = names(data),
80-
ignore.case = TRUE) # Case-insensitive
81-
82-
}
83-
8478
if("unscheduled_call_hours" %in% lnames){
8579

8680
names(data) <-

R/collaboration_dist.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ collaboration_dist <- function(data,
3232
return = "plot",
3333
cut = c(15, 20, 25)) {
3434

35+
## Handle variable name consistency
36+
data <- qui_stan_c(data)
37+
3538
create_dist(data = data,
3639
metric = "Collaboration_hours",
3740
hrvar = hrvar,

R/collaboration_fizz.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ collaboration_fizz <- function(data,
3232
mingroup = 5,
3333
return = "plot"){
3434

35+
## Handle variable name consistency
36+
data <- qui_stan_c(data)
37+
3538
create_fizz(data = data,
3639
metric = "Collaboration_hours",
3740
hrvar = hrvar,

R/collaboration_line.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ collaboration_line <- function(data,
3333
mingroup = 5,
3434
return = "plot"){
3535

36+
## Handle variable name consistency
37+
data <- qui_stan_c(data)
38+
3639
## Inherit arguments
3740
create_line(data = data,
3841
metric = "Collaboration_hours",

R/collaboration_rank.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ collaboration_rank <- function(data,
4242
plot_mode = 1,
4343
return = "plot"){
4444

45+
## Handle variable name consistency
46+
data <- qui_stan_c(data)
4547

4648
create_rank(data,
47-
metric="Collaboration_hours",
49+
metric = "Collaboration_hours",
4850
hrvar = hrvar,
4951
mingroup = mingroup,
5052
mode = mode,

R/collaboration_trend.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ collaboration_trend <- function(data,
2828
mingroup = 5,
2929
return = "plot"){
3030

31+
## Handle variable name consistency
32+
data <- qui_stan_c(data)
33+
3134
create_trend(data,
3235
metric = "Collaboration_hours",
3336
hrvar = hrvar,

0 commit comments

Comments
 (0)