Skip to content

Commit

Permalink
Merge pull request #168 from Appsilon/issue/#164-cannot-access-LogFile
Browse files Browse the repository at this point in the history
Issue/#164 cannot access log file
  • Loading branch information
WahiduzzamanKhan authored Apr 26, 2024
2 parents 4afaf0d + 4d0417f commit 1012e69
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: shiny.telemetry
Title: 'Shiny' App Usage Telemetry
Version: 0.2.0.9010
Version: 0.2.0.9011
Authors@R: c(
person("André", "Veríssimo", , "[email protected]", role = c("aut", "cre")),
person("Kamil", "Żyła", , "[email protected]", role = "aut"),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
- Improves SQL injection safeguards via `glue::glue_sql` to generated SQL queries (#34).
- Show proper error message when no telemetry data is available (#177).

### Bug Fixes

- Fixed Analytics app not being able to access data by Instrumentation app (#164).

# shiny.telemetry 0.2.0

### New Features
Expand Down
5 changes: 4 additions & 1 deletion inst/examples/app/analytics/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ library(DT)
library(shiny.telemetry)

# Default storage backend using LogFile
log_file_path <- file.path("..", "instrumentation", "user_stats.txt")
if (!dir.exists(dirname(log_file_path))) log_file_path <- "user_stats.txt"

data_storage <- DataStorageLogFile$new(
log_file_path = file.path(getwd(), "user_stats.txt")
log_file_path = log_file_path
)

# This sample application includes a configuration for RSConnect deployments,
Expand Down

0 comments on commit 1012e69

Please sign in to comment.