Skip to content

Commit 331a3ae

Browse files
authored
Merge pull request #89 from R-Lum/dev_various
various fixes and compatibility with Luminescence 1.1.2 and a big thanks to @mcol. Should @tzerk start a new release? I guess so, right?
2 parents 6bba741 + 958fd96 commit 331a3ae

File tree

21 files changed

+161
-154
lines changed

21 files changed

+161
-154
lines changed

.github/workflows/GitHub_Actions_CI.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
on:
33
push:
44
branches:
5-
- dev_*
65
- master
76
pull_request:
87
branches:

.github/workflows/test-coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# https://github.com/r-lib/actions/issues/834
44
on:
55
push:
6-
branches: [master, dev_*]
6+
branches: [master]
77
pull_request:
88
branches: [master, dev_*]
99

@@ -28,7 +28,7 @@ jobs:
2828

2929
- uses: r-lib/actions/setup-r@v2
3030
with:
31-
r-version: '4.3.3'
31+
r-version: 'release'
3232
use-public-rspm: true
3333

3434
- uses: r-lib/actions/setup-r-dependencies@v2

DESCRIPTION

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,20 @@ Description: A collection of 'shiny' applications for the R package
2121
License: GPL-3 | file LICENSE
2222
Encoding: UTF-8
2323
Depends:
24-
R (>= 4.3)
24+
R (>= 4.4)
2525
Imports:
26-
Luminescence (>= 1.1.0),
26+
Luminescence (>= 1.1.2),
2727
shiny (>= 1.11.1),
2828
rhandsontable (>= 0.3.8),
2929
data.table (>= 1.17.6),
3030
googleVis (>= 0.7.3),
31-
leaflet (>= 2.2.2),
31+
leaflet (>= 2.2.3),
3232
shinydashboard (>= 0.7.3),
3333
RCarb (>= 0.1.6),
34-
markdown (>= 1.13),
34+
markdown (>= 2.0),
3535
readxl (>= 1.4.5),
36-
DT (>= 0.33),
36+
DT (>= 0.34),
3737
knitr (>= 1.50)
3838
URL: https://tzerk.github.io/RLumShiny/
3939
BugReports: https://github.com/tzerk/RLumShiny/issues
40-
RoxygenNote: 7.3.2
40+
RoxygenNote: 7.3.3

LICENSE

Lines changed: 80 additions & 80 deletions
Large diffs are not rendered by default.

NEWS.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ output: github_document
55

66
## Current development version (`r Sys.Date()`)
77

8+
**This package version requires R > 4.4!**
9+
810
* New application to plot a dose-response curve for luminescence data.
911
Base function: `Luminescence::plot_DoseResponseCurve()`.
1012
Keyword for `app_RLum()`: 'doseresponsecurve'.

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11

22
<!-- NEWS.md was auto-generated by NEWS.Rmd. Please DO NOT edit by hand!-->
33

4-
## Current development version (2025-11-12)
4+
## Current development version (2025-12-15)
5+
6+
**This package version requires R \> 4.4!**
57

68
- New application to plot a dose-response curve for luminescence data.
79
Base function: `Luminescence::plot_DoseResponseCurve()`. Keyword for

inst/shiny/KDE/server.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function(input, output, session) {
1919
return(NULL) # if no file was uploaded return NULL
2020

2121
values$data_primary <- fread(file = inFile$datapath, data.table = FALSE) # inFile[1] contains filepath
22-
if (ncol(values$data_primary > 2))
22+
if (ncol(values$data_primary) > 2)
2323
values$data_primary <- values$data_primary[, 1:2]
2424
})
2525

@@ -31,7 +31,7 @@ function(input, output, session) {
3131
return(NULL) # if no file was uploaded return NULL
3232

3333
values$data_secondary <- fread(file = inFile$datapath, data.table = FALSE) # inFile[1] contains filepath
34-
if (ncol(values$data_secondary > 2))
34+
if (ncol(values$data_secondary) > 2)
3535
values$data_secondary <- values$data_secondary[, 1:2]
3636
})
3737

@@ -141,7 +141,7 @@ function(input, output, session) {
141141
summary = summary,
142142
summary.pos = input$sumpos,
143143
summary.method = input$summary.method,
144-
bw = input$bw,
144+
bw = as.numeric(input$bw),
145145
xlim = input$xlim,
146146
col = c(color, color2))
147147
})

inst/shiny/abanico/server.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function(input, output, session) {
9191
return(NULL) # if no file was uploaded return NULL
9292

9393
values$data_primary <- fread(file = inFile$datapath, data.table = FALSE) # inFile[1] contains filepath
94-
if (ncol(values$data_primary > 2))
94+
if (ncol(values$data_primary) > 2)
9595
values$data_primary <- values$data_primary[, 1:2]
9696
})
9797

@@ -103,7 +103,7 @@ function(input, output, session) {
103103
return(NULL) # if no file was uploaded return NULL
104104

105105
values$data_secondary <- fread(file = inFile$datapath, data.table = FALSE) # inFile[1] contains filepath
106-
if (ncol(values$data_secondary > 2))
106+
if (ncol(values$data_secondary) > 2)
107107
values$data_secondary <- values$data_secondary[, 1:2]
108108
})
109109

inst/shiny/cosmicdose/server.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,26 @@ function(input, output, session) {
3434
}
3535

3636
# return data frame
37-
d <- data.frame(Lat = LatLong[1], Long = LatLong[2], tip = "Site")
38-
return(d)
37+
data.frame(Lat = LatLong[1], Long = LatLong[2])
3938
})
4039

4140
# render OpenStreetMap
4241
output$map <- leaflet::renderLeaflet({
4342
# refresh plot on button press
4443
input$refresh
4544

46-
m <- leaflet::leaflet() |>
45+
coords <- coords()
46+
leaflet::leaflet() |>
4747
leaflet::addTiles() |>
48-
leaflet::setView(coords()$Long, coords()$Lat, zoom = 17) |>
49-
leaflet::addPopups(coords()$Long, coords()$Lat, 'Sampling site')
48+
leaflet::setView(coords$Long, coords$Lat, zoom = 17) |>
49+
leaflet::addPopups(coords$Long, coords$Lat, 'Sampling site')
5050
})
5151

5252

5353
# get results from calc_CosmicDoseRate() function
5454
get_results<- reactive({
5555
# get coordinates
56-
coords<- as.vector(coords()[,1:2])
56+
coords<- coords()
5757
lat <- coords$Lat
5858
long <- coords$Long
5959

inst/shiny/cosmicdose/ui.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function(request) {
1111

1212
fluidPage(
1313
titlePanel("Cosmic Dose", windowTitle = "RLumShiny - Cosmic Dose"),
14-
includeCSS("./www/style.css"),
14+
1515
fluidRow(
1616
column(width = 3,
1717
div(align = "center", span(class="label label-info", "Site")),
@@ -34,23 +34,23 @@ function(request) {
3434
numericInput(inputId = "degN_1", label = p(class="h","N: \uB0"), value = 50, step = 1),
3535
numericInput(inputId = "degE_1", label = p(class="h","E: \uB0"), value = 6, step = 1)
3636
),
37-
column(width = 4, offset = 2,
37+
column(width = 6, offset = 1,
3838
numericInput(inputId = "decMinN", label = p(class="h","Decimal \u27"), value = 55.61417, step = 0.000001),
3939
numericInput(inputId = "decMinE", label = p(class="h","Decimal \u27"), value = 56.24717, step = 0.000001)
4040
)
4141
)
4242
),
4343
conditionalPanel(condition = "input.coords == 'degMinSec'",
4444
fluidRow(
45-
column(width = 3, offset = 0,
45+
column(width = 4,
4646
numericInput(inputId = "degN_2", label = p(class="h","N: \uB0"), value = 50, step = 1),
4747
numericInput(inputId = "degE_2", label = p(class="h","E: \uB0"), value = 6, step = 1)
4848
),
49-
column(width = 3, offset = 1,
49+
column(width = 4,
5050
numericInput(inputId = "minN", label = p(class="h","\u27"), value = 55, step = 1),
5151
numericInput(inputId = "minE", label = p(class="h","\u27"), value = 56, step = 1)
5252
),
53-
column(width = 3, offset = 1,
53+
column(width = 4,
5454
numericInput(inputId = "secN", label = p(class="h","\u27\u27"), value = 36.85, step = 0.01),
5555
numericInput(inputId = "secE", label = p(class="h","\u27\u27"), value = 14.83, step = 0.01)
5656
)

0 commit comments

Comments
 (0)