Yes, I get the error:
Error: Unable to retrieve package records for the following packages:
- "JM"
Execution halted
My minimal example is an .Rmd file with the following content:
<begin Rmd>
---
title: "Tutorial"
output: learnr::tutorial
runtime: shiny_prerendered
---
```{r setup, include=FALSE}
library("learnr")
library("JM")
data("
aids.id", package = "JM")
knitr::opts_chunk$set(echo = FALSE)
```
## Topic 1
### Exercise
Write the R code required to add two plus two:
```{r two-plus-two, exercise=TRUE}
```
<end Rmd>
> sessionInfo()
R version 3.4.0 (2017-04-21)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United
States.1252 LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C LC_TIME=English_United
States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] Rcpp_0.12.11 withr_1.0.2 digest_0.6.12 rprojroot_1.2
mime_0.5 R6_2.2.2 xtable_1.8-2
[8] jsonlite_1.5 backports_1.1.0 magrittr_1.5 evaluate_0.10.1
stringi_1.1.5 learnr_0.9 rmarkdown_1.6
[15] tools_3.4.0 stringr_1.2.0 htmlwidgets_0.8 markdown_0.8
shiny_1.0.3 rsconnect_0.8 httpuv_1.3.5
[22] yaml_2.1.14 compiler_3.4.0 htmltools_0.3.6 knitr_1.16
Best,
Dimitris
On 8/23/2017 2:13 AM, Joe Cheng [RStudio] wrote:
> That's strange, library(JM) should be enough. Any error messages during
> deployment?
>
> On Tuesday, August 22, 2017 at 11:21:51 AM UTC-7, Dimitris Rizopoulos wrote:
>
> I'm trying to install one of my packages (JM), which is available on
> CRAN (
https://cran.r-project.org/package=JM
> <
https://cran.r-project.org/package=JM>) for a learnr
> <
https://cran.r-project.org/package=learnr> tutorial. In the
> beginning of the tutorial I have the code:
>
> |
> ```{r setup, include=FALSE}
> library("learnr")
> library("survival")
> library("lattice")
> library("JM")
> data("
aids.id <
http://aids.id/>", package = "JM")
> knitr::opts_chunk$set(echo = FALSE)
> ```
> |
>
>
> This works of course fine in my machine, but when I try to deploy
> the tutorial on
shinyapps.io <
http://shinyapps.io> the package does
> not seem to get installed and the tutorial does not work. Should I
> make the requirement for JM evident in some other way in order for
> rsconnect
> to pick it up?
>
> Thanks in advance for any pointers!
>
> Best,
> Dimitris
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Shiny - Web Framework for R" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/shiny-discuss/BxnPOTfKcoM/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
shiny-discus...@googlegroups.com
> <mailto:
shiny-discus...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/shiny-discuss/8a8c2018-9c51-4ab0-8deb-598fe31edcaa%40googlegroups.com
> <
https://groups.google.com/d/msgid/shiny-discuss/8a8c2018-9c51-4ab0-8deb-598fe31edcaa%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.