Skip to content

Commit df0a04d

Browse files
committed
All code comments in English now
1 parent 3d88d26 commit df0a04d

File tree

3 files changed

+75
-67
lines changed

3 files changed

+75
-67
lines changed

NEWS.Rmd

Lines changed: 66 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,82 +3,96 @@ title: "NEWS"
33
output: html_document
44
---
55

6+
## TODOs
7+
8+
- Because this is a shiny app, I think it would be nice to have a gif in the package README file
9+
showing how to use the app instead of just a screenshot of the interface, or at least a few more
10+
screenshots indicating the steps to run the analysis
11+
12+
- Also on the exemplification, it woul be nice to have an 'example analysis' in the shiny app (as
13+
another tab), because currently, we can only see any results if we input our own data, which
14+
might be a bit confusing for someone who is exploring the app and maybe doesn't have their own
15+
data yet
16+
17+
- The tests seemed a bit incomplete to me, it doesn't look like all functions are being tested,
18+
just the app function and the file format. Is this enough to test the whole code?
19+
20+
## v0.6.1
21+
22+
- All code comments are in English now
623

724
## v0.6.0
825

9-
* Excel output: added table with raw matching score, i.e. without constructs reversal, to better
10-
resemble step 3 from method description
11-
* Update README with parts from the JOSS paper as suggested by reviewers
12-
* UI Tweaks to improve usability: info box informs that the output is an Excel file,
13-
mouser-over for most analysis settings
14-
* Added MIT License
26+
- Excel output: added table with raw matching score, i.e. without constructs reversal, to better
27+
resemble step 3 from method description
28+
- Update README with parts from the JOSS paper as suggested by reviewers
29+
- UI Tweaks to improve usability: info box informs that the output is an Excel file, mouser-over
30+
for most analysis settings
31+
- Added MIT License
1532

1633
## v0.5.1
1734

18-
* breaking changes in shinyDashboardPlus 2.0.0 integrated
19-
35+
- breaking changes in shinyDashboardPlus 2.0.0 integrated
2036

2137
## v0.5.0
2238

23-
* clean up old and unnecessary files
24-
* Sylvia's sample grid with full element labels
25-
* network image interpretation help inside Excel
26-
* option to prefix with pole valence (+/-)
27-
* option to set maximal construct label length
28-
* pole alignment option in calculation and graph functions
29-
* removed bold font indications
39+
- clean up old and unnecessary files
40+
- Sylvia's sample grid with full element labels
41+
- network image interpretation help inside Excel
42+
- option to prefix with pole valence (+/-)
43+
- option to set maximal construct label length
44+
- pole alignment option in calculation and graph functions
45+
- removed bold font indications
3046

3147
## v0.4.0
3248

33-
* program does not crash when Excel format is incorrect
34-
* more Excel format tests and
35-
* image borders parameter in `network_graph_images`
36-
* fix left alignment of right pole in grid table
37-
* option for showing / hiding edges
38-
* option for showing construct relatedness by color
39-
* option for showing construct relatedness by +/- label
40-
* option to auto-color cliques in UI and `network_graph_images`
41-
* throw general Excel data format error when a test yields NA for unknown reasons
42-
* additional network images with bold related poles
49+
- program does not crash when Excel format is incorrect
50+
- more Excel format tests and
51+
- image borders parameter in `network_graph_images`
52+
- fix left alignment of right pole in grid table
53+
- option for showing / hiding edges
54+
- option for showing construct relatedness by color
55+
- option for showing construct relatedness by +/- label
56+
- option to auto-color cliques in UI and `network_graph_images`
57+
- throw general Excel data format error when a test yields NA for unknown reasons
58+
- additional network images with bold related poles
4359

4460
## v0.3.1
4561

46-
* fix bug and make compatible with upcoming `shinyjs` 2.0 release
47-
* text on landing page and REAMDE updated
62+
- fix bug and make compatible with upcoming `shinyjs` 2.0 release
63+
- text on landing page and REAMDE updated
4864

4965
## v0.3.0
5066

51-
* all data files from publication added
52-
* link to all datasets used in publication
53-
* travis CI added
54-
* added Richard's grid
55-
* password protection removed
56-
* method description added directly to app
57-
* method description sheet added to Excel output
58-
* direction in matrix colorized
59-
* legend added to sheet calculations
60-
* construct labels left of relatedness matrix
61-
* colored edges to indicate direction of construct relatedness
62-
* abbreviated and full construct labels in network output images
67+
- all data files from publication added
68+
- link to all datasets used in publication
69+
- travis CI added
70+
- added Richard's grid
71+
- password protection removed
72+
- method description added directly to app
73+
- method description sheet added to Excel output
74+
- direction in matrix colorized
75+
- legend added to sheet calculations\
76+
- construct labels left of relatedness matrix
77+
- colored edges to indicate direction of construct relatedness
78+
- abbreviated and full construct labels in network output images
6379

6480
## v0.2.0
6581

66-
* package help and examples for workhorse functions added
67-
* no detected cliques will no longer cause an error
68-
* warn for low number of matches for relatedness
69-
* image and description of file format
70-
* software introduction tour
71-
* auto adjusting cut-off values for relatedness according to grid size
82+
- package help and examples for workhorse functions added
83+
- no detected cliques will no longer cause an error
84+
- warn for low number of matches for relatedness
85+
- image and description of file format
86+
- software introduction tour
87+
- auto adjusting cut-off values for relatedness according to grid size
7288

7389
## v0.1.0
7490

75-
* First working version with all necessary features
91+
- First working version with all necessary features
7692

7793
## backlog (optional)
7894

79-
* table CSS issues (at least on shinyapps.io)
80-
* use more condensed monospace font for related poles to save space
81-
* an Rplots.pdf file is created when running the tests. Unknown reason. par() is not the culprit
82-
* add tooltips
83-
84-
95+
- table CSS issues (at least on shinyapps.io)
96+
- use more condensed monospace font for related poles to save space
97+
- an Rplots.pdf file is created when running the tests. Unknown reason. par() is not the culprit
98+
- add tooltips

OpenRepGrid.ic.Rproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ PackageRoxygenize: rd,collate,namespace,vignette
1919

2020
QuitChildProcessesOnExit: Yes
2121
DisableExecuteRprofile: Yes
22+
23+
MarkdownWrap: Column
24+
MarkdownWrapAtColumn: 100

R/01-utils.R

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ dt_default <- function(text = "Waiting for data ...",
6666
#' @examples
6767
#'
6868
#' cell_text_split("10, 20,30" )
69-
#' cell_text_split("; , 10 ,,, 20;30,," ) # sehr robust
69+
#' cell_text_split("; , 10 ,,, 20;30,," ) # very robust
7070
#'
7171
cell_text_split <- function(x)
7272
{
@@ -83,11 +83,11 @@ cell_text_split <- function(x)
8383
make_names_vec <- function(x)
8484
{
8585
nms <- tolower(x)
86-
nms <- stringr::str_replace_all(nms, "[[:blank:]]+", "_") # Leerzeichen ersetzen
87-
nms <- stringr::str_replace_all(nms, "\\.|-|/|\\(|\\)|&|\\?", "_") # punkte, bindestrich, (back-)slashes, Fragezeichen zu unterstrich
88-
nms <- stringr::str_replace_all(nms, "[_]+", "_") # mehrere unterstriche zu einem
89-
nms <- stringr::str_replace_all(nms, "[_]+$", "") # unterstriche am ende entfernen
90-
nms <- stringr::str_replace_all(nms, "\u00E4", "ae") # umlaute ersetzen
86+
nms <- stringr::str_replace_all(nms, "[[:blank:]]+", "_") # replace blanks
87+
nms <- stringr::str_replace_all(nms, "\\.|-|/|\\(|\\)|&|\\?", "_") # replace . - \ ? to _ (underscore)
88+
nms <- stringr::str_replace_all(nms, "[_]+", "_") # replace multiple underscores by one
89+
nms <- stringr::str_replace_all(nms, "[_]+$", "") # remove trailing underscores
90+
nms <- stringr::str_replace_all(nms, "\u00E4", "ae") # replace German umlauts by their two letter ASCII version
9191
nms <- stringr::str_replace_all(nms, "\u00FC", "ue")
9292
nms <- stringr::str_replace_all(nms, "\u00F6", "oe")
9393
nms
@@ -120,12 +120,3 @@ fnum <- function(x, digits = 2)
120120
x <- round(x, digits)
121121
formatC(x, digits = digits, format = "f")
122122
}
123-
124-
125-
126-
127-
128-
129-
130-
131-

0 commit comments

Comments
 (0)