@@ -12,23 +12,39 @@ mod_about_ui <- function(id) {
1212 # Citation info ----
1313 rql_citation <- utils :: citation(" requal" )
1414 # Extract authors
15- authors <- sapply(as.character(rql_citation $ author ), function (x ) strsplit(x , " " )) # Split the author names into first and last names
15+ authors <- sapply(as.character(rql_citation $ author ), function (x ) {
16+ strsplit(x , " " )
17+ }) # Split the author names into first and last names
1618 # Format the authors as "Last name, Initial."
17- formatted_authors <- sapply(authors , function (x ) paste0(x [2 ], " , " , substr(x [1 ], 1 , 1 ), " ." ))
19+ formatted_authors <- sapply(authors , function (x ) {
20+ paste0(x [2 ], " , " , substr(x [1 ], 1 , 1 ), " ." )
21+ })
1822 # Combine the authors into a single string
1923 author_string <- paste(formatted_authors , collapse = " , " )
2024 year <- rql_citation $ year
2125 title <- rql_citation $ title
2226 version <- as.character(packageVersion(" requal" ))
2327 rql_url <- rql_citation $ url
2428 # Construct the APA citation
25- apa_citation <- paste0(author_string , " (" , year , " ). " , tags $ i(title ), " . (Version " , version , " ). <" , rql_url , " >" )
29+ apa_citation <- paste0(
30+ author_string ,
31+ " (" ,
32+ year ,
33+ " ). " ,
34+ tags $ i(title ),
35+ " . (Version " ,
36+ version ,
37+ " ). <" ,
38+ rql_url ,
39+ " >"
40+ )
2641 # UI starts here ----
2742 tagList(
2843 h2(
2944 tags $ a(
30- href = " https://requal.fsv.cuni.cz/" ,
31- tags $ img(src = " www/requal_logo.png" , width = " 5%" ), target = " _blank"
45+ href = " https://requal.app/" ,
46+ tags $ img(src = " www/requal_logo.png" , width = " 5%" ),
47+ target = " _blank"
3248 ),
3349 " requal CAQDAS"
3450 ),
@@ -37,11 +53,19 @@ mod_about_ui <- function(id) {
3753 p(),
3854 p(
3955 " For help, consult " ,
40- a(" requal Wiki" , href = " https://github.com/RE-QDA/requal/wiki" , target = " _blank" ),
56+ a(
57+ " requal Wiki" ,
58+ href = " https://github.com/RE-QDA/requal/wiki" ,
59+ target = " _blank"
60+ ),
4161 " ." ,
4262 br(),
4363 " Leave feedback on our " ,
44- a(" GitHub page" , href = " https://github.com/RE-QDA/requal/issues" , target = " _blank" ),
64+ a(
65+ " GitHub page" ,
66+ href = " https://github.com/RE-QDA/requal/issues" ,
67+ target = " _blank"
68+ ),
4569 " ."
4670 ),
4771 p(),
@@ -66,7 +90,8 @@ mod_about_ui <- function(id) {
6690 )
6791 ),
6892 p(" To cite package" , tags $ code(" requal" ), " in publications use:" ),
69- HTML(apa_citation ), p(),
93+ HTML(apa_citation ),
94+ p(),
7095 p(" A BibTeX entry for LaTeX users:" ),
7196 tags $ pre(paste(utils :: toBibtex(utils :: citation(" requal" )), collapse = " \n " ))
7297 )
@@ -83,7 +108,9 @@ mod_about_server <- function(id, glob) {
83108 paste0(
84109 " The current project was created with requal version " ,
85110 dplyr :: tbl(glob $ pool , " requal_version" ) %> %
86- dplyr :: filter(.data $ project_id == local(as.numeric(glob $ active_project ))) %> %
111+ dplyr :: filter(
112+ .data $ project_id == local(as.numeric(glob $ active_project ))
113+ ) %> %
87114 dplyr :: pull(version ),
88115 " ."
89116 )
@@ -92,7 +119,8 @@ mod_about_server <- function(id, glob) {
92119 output $ version_package <- renderText({
93120 paste0(
94121 " The current version of requal package installed is " ,
95- packageVersion(" requal" ), " ."
122+ packageVersion(" requal" ),
123+ " ."
96124 )
97125 })
98126 })
0 commit comments