Comments (9)
Hi Pranav,
It's going to be tough to diagnose the issue without any more information. I don't think this is a shinyauthr
issue though because the example app you mentioned is deployed on shinyapps.io here: https://cultureofinsight.shinyapps.io/shinyauthr/ and is working fine.
Your logs on shinyapps.io don't give any clues at all?
from shinyauthr.
Hi Paul,
Thanks for responding. I am using the exact same code to deploy the app on shinyapps.io but the app doesn't work. Specifically, it shows a black screen after deployment.
I have checked the logs (pasted below) but there are no errors:
2019-03-04T14:15:59.589957+00:00 shinyapps[760761]: Using jsonlite for JSON processing
2019-03-04T14:15:59.595799+00:00 shinyapps[760761]:
2019-03-04T14:15:59.595802+00:00 shinyapps[760761]: Starting R with process ID: '19'
2019-03-04T14:15:59.628022+00:00 shinyapps[760761]:
2019-03-04T14:15:59.628025+00:00 shinyapps[760761]: Attaching package: ‘shinydashboard’
2019-03-04T14:15:59.628026+00:00 shinyapps[760761]:
2019-03-04T14:15:59.628739+00:00 shinyapps[760761]: The following object is masked from ‘package:graphics’:
2019-03-04T14:15:59.628740+00:00 shinyapps[760761]:
2019-03-04T14:15:59.628741+00:00 shinyapps[760761]: box
2019-03-04T14:15:59.628743+00:00 shinyapps[760761]:
2019-03-04T14:15:59.435575+00:00 shinyapps[760761]: LANG: en_US.UTF-8
2019-03-04T14:15:59.435585+00:00 shinyapps[760761]: httpuv version: 1.4.5.1
2019-03-04T14:15:59.435584+00:00 shinyapps[760761]: shiny version: 1.2.0
2019-03-04T14:15:59.435596+00:00 shinyapps[760761]: rmarkdown version: NA
2019-03-04T14:15:59.435606+00:00 shinyapps[760761]: knitr version: NA
2019-03-04T14:15:59.435612+00:00 shinyapps[760761]: jsonlite version: 1.6
2019-03-04T14:15:59.435636+00:00 shinyapps[760761]: RJSONIO version: NA
2019-03-04T14:15:59.435651+00:00 shinyapps[760761]: htmltools version: 0.3.6
2019-03-04T14:15:59.871457+00:00 shinyapps[760761]:
2019-03-04T14:15:59.871460+00:00 shinyapps[760761]: Attaching package: ‘dplyr’
2019-03-04T14:15:59.871461+00:00 shinyapps[760761]:
2019-03-04T14:15:59.871808+00:00 shinyapps[760761]: The following objects are masked from ‘package:stats’:
2019-03-04T14:15:59.871810+00:00 shinyapps[760761]:
2019-03-04T14:15:59.871812+00:00 shinyapps[760761]: filter, lag
2019-03-04T14:15:59.871813+00:00 shinyapps[760761]:
2019-03-04T14:15:59.873016+00:00 shinyapps[760761]: The following objects are masked from ‘package:base’:
2019-03-04T14:15:59.873018+00:00 shinyapps[760761]:
2019-03-04T14:15:59.873021+00:00 shinyapps[760761]:
2019-03-04T14:15:59.880639+00:00 shinyapps[760761]:
2019-03-04T14:15:59.881651+00:00 shinyapps[760761]:
2019-03-04T14:15:59.880641+00:00 shinyapps[760761]: Attaching package: ‘shinyjs’
2019-03-04T14:15:59.886583+00:00 shinyapps[760761]:
2019-03-04T14:15:59.880642+00:00 shinyapps[760761]:
2019-03-04T14:15:59.886585+00:00 shinyapps[760761]: Attaching package: ‘glue’
2019-03-04T14:15:59.880986+00:00 shinyapps[760761]: The following object is masked from ‘package:shiny’:
2019-03-04T14:15:59.886586+00:00 shinyapps[760761]:
2019-03-04T14:15:59.880988+00:00 shinyapps[760761]:
2019-03-04T14:15:59.886935+00:00 shinyapps[760761]: The following object is masked from ‘package:dplyr’:
2019-03-04T14:15:59.880989+00:00 shinyapps[760761]: runExample
2019-03-04T14:15:59.880991+00:00 shinyapps[760761]:
2019-03-04T14:15:59.881646+00:00 shinyapps[760761]: The following objects are masked from ‘package:methods’:
2019-03-04T14:15:59.873020+00:00 shinyapps[760761]: intersect, setdiff, setequal, union
2019-03-04T14:15:59.881648+00:00 shinyapps[760761]:
2019-03-04T14:15:59.881650+00:00 shinyapps[760761]: removeClass, show
2019-03-04T14:15:59.886937+00:00 shinyapps[760761]:
2019-03-04T14:15:59.886938+00:00 shinyapps[760761]: collapse
2019-03-04T14:15:59.886939+00:00 shinyapps[760761]:
2019-03-04T14:15:59.895915+00:00 shinyapps[760761]: Warning: `data_frame()` is deprecated, use `tibble()`.
2019-03-04T14:15:59.895917+00:00 shinyapps[760761]: This warning is displayed once per session.
2019-03-04T14:15:59.915700+00:00 shinyapps[760761]:
2019-03-04T14:15:59.915703+00:00 shinyapps[760761]: Listening on http://127.0.0.1:38787
My sessionInfo is as below:
> sessionInfo()
R version 3.5.2 (2018-12-20)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shinyauthr_0.0.99 glue_1.3.0 shinyjs_1.0 dplyr_0.8.0.1
[5] shinydashboard_0.7.1 shiny_1.2.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 rstudioapi_0.9.0 magrittr_1.5 tidyselect_0.2.5
[5] xtable_1.8-3 R6_2.4.0 rlang_0.3.1 tools_3.5.2
[9] packrat_0.5.0 htmltools_0.3.6 askpass_1.1 openssl_1.2.2
[13] digest_0.6.18 assertthat_0.2.0 tibble_2.0.1 crayon_1.3.4
[17] purrr_0.3.1 later_0.8.0 promises_1.0.1 rsconnect_0.8.13
[21] mime_0.6 compiler_3.5.2 pillar_1.3.1 jsonlite_1.6
[25] httpuv_1.4.5.1 pkgconfig_2.0.2
May I kindly ask you to re-deploy your app (https://cultureofinsight.shinyapps.io/shinyauthr/) on shinyapps.io to see if it's Rstudio version issue? I'm using the latest version of R 3.5.2 (2018-12-20)
from shinyauthr.
Just deployed here https://cultureofinsight.shinyapps.io/shinyauthr_test/
> sessionInfo()
R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.1252 LC_CTYPE=English_United Kingdom.1252
[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shinyauthr_0.0.99 glue_1.3.0 shinyjs_1.0.1.9004 dplyr_0.7.8
[5] shinydashboard_0.7.1 shiny_1.2.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.0 pillar_1.3.1 bindr_0.1.1 compiler_3.5.1 later_0.8.0
[6] prettyunits_1.0.2 base64enc_0.1-3 remotes_2.0.2 tools_3.5.1 testthat_2.0.1
[11] digest_0.6.18 packrat_0.4.9-3 pkgbuild_1.0.2 pkgload_1.0.2 tibble_2.0.0
[16] jsonlite_1.6 memoise_1.1.0 debugme_1.1.0 pkgconfig_2.0.2 rlang_0.3.1
[21] cli_1.0.1 rstudioapi_0.8 curl_3.2 bindrcpp_0.2.2 withr_2.1.2
[26] desc_1.2.0 fs_1.2.6 devtools_2.0.1 tidyselect_0.2.5 rprojroot_1.3-2
[31] R6_2.4.0 processx_3.2.0 sessioninfo_1.1.1 purrr_0.2.5 callr_3.0.0
[36] magrittr_1.5 backports_1.1.3 ps_1.2.1 promises_1.0.1 htmltools_0.3.6
[41] usethis_1.4.0 rsconnect_0.8.13 assertthat_0.2.0 xtable_1.8-3 mime_0.6
[46] httpuv_1.4.5.1 openssl_1.0.2 crayon_1.3.4
from shinyauthr.
Thanks.
I will try switching to R version 3.5.1 to see if the issue gets resolved.
from shinyauthr.
Hello Paul, I still couldn't resolve the issue. :(
For the local version, I have installed later
and shinyauthr
from github as follows:
devtools::install_github("r-lib/later")
devtools::install_github("paulc91/shinyauthr")
shinyapps.io should be able to load shinyauthr
automatically from my local installation. Although there are no error messages, I think it may be a library issue because shinyauthr
is not on CRAN?
I also tried to deploy it on docker (local) with the above procedure and it is not able to load shinyauthr
package. Below are the logs from docker:
Attaching package: ‘shinydashboard’
The following object is masked from ‘package:graphics’:
box
Attaching package: ‘shinyjs’
The following object is masked from ‘package:shiny’:
runExample
The following objects are masked from ‘package:methods’:
removeClass, show
── Attaching packages ─────────────────────────────────────── tidyverse 1.2.1 ──
✔ ggplot2 3.1.0 ✔ purrr 0.2.5
✔ tibble 1.4.2 ✔ dplyr 0.7.8
✔ tidyr 0.8.2 ✔ stringr 1.3.1
✔ readr 1.3.0 ✔ forcats 0.3.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::between() masks data.table::between()
✖ dplyr::collapse() masks glue::collapse()
✖ dplyr::filter() masks stats::filter()
✖ dplyr::first() masks data.table::first()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::last() masks data.table::last()
✖ purrr::transpose() masks data.table::transpose()
Error in library(shinyauthr) : there is no package called ‘shinyauthr’
Calls: runApp ... sourceUTF8 -> eval -> eval -> ..stacktraceon.. -> library
Execution halted
May I kindly ask, which packages (and how) have you installed locally before deploying the app with shinyauthr
package on shinyapps.io?
from shinyauthr.
Sorry Pranav I won't have time to address in the foreseeable future and I don't think this is a shinyauthr specific issue.
You can avoid requiring shinyauthr
installation in your app by copying the module functions in login.R and logout.R to your own script which you then source in your app. Then use the loginUI
, logoutUI
, login
and logout
module functions as you would any other module.
Thanks,
Paul
from shinyauthr.
Thanks a lot for the suggestion, @PaulC91 . I have managed to run the app on shinyapps.io and would like to share the solution in case, anyone comes across this issue in future.
The problem (in my case) was with returnClick.js
file. App works perfectly fine (on shinyapps.io) after:
- removing
returnClick.js
file and - removing
includeScript("returnClick.js")
code chunk from dashboardBody.
Thanks again for your prompt responses.
from shinyauthr.
strange. were you uploading the returnClick.js
file with the app? the example app I have on shinyapps.io was deployed with this script.
from shinyauthr.
Yes, I was uploading retunClick.js
file with the app and the screen (after deployment) was turning blank on shinyapps.io
It's quite strange that App worked (on my shinyapps.io account) only after removing it.
from shinyauthr.
Related Issues (20)
- About loginUI title Simple Chinese does not work HOT 8
- Additional info in the login box HOT 2
- Background and text colour HOT 1
- Issue adding a loading icon/spinner HOT 1
- live example app down? HOT 3
- CRAN submission HOT 3
- How to enable password coding by setting "sodium_hashed" parameter? HOT 2
- Reload session when logging out? HOT 14
- Error object 'js' not found HOT 8
- Error in shiny::isTruthy: attempt to apply non-function HOT 2
- Option to bypass/deactivate the login
- Error: shinyjs: Error parsing the JavaScript code provided. HOT 1
- shinydashboard shows app without login using shinyauthr HOT 1
- White font color on login button is difficult to see HOT 3
- login error after shiny timeout HOT 4
- Beautify the login window suggestion HOT 3
- Where should I put the data for my own app in shinyboard? HOT 1
- Cases for help HOT 2
- Using shinyauthr with shiny rmarkdown documents HOT 1
- Log password failures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shinyauthr.