You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When finding deps in a folder that contains a folder with .Rmd at the end of the name, renv tries to readLines on the folder.
Example setup:
❯❯ renv::dependencies("examples/00-setup")
Finding R package dependencies ... Done!
Source
1 /Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/00-setup.Rmd
2 /Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/00-setup.Rmd
3 /Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/00-setup.Rmd
4 /Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/00-setup.Rmd
5 /Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/rsconnect
6 cannot open the connection
Package Require
1 rmarkdown
2 shiny
3 learnr
4 learnr
5 rsconnect
6 cannot open the connection cannot open the connection
Version
1
2
3
4
5
6 cannot open the connection
✔ learnr@renv_deps* 146 MiB
❯❯ system("tree examples/00-setup")
examples/00-setup
├── 00-setup.Rmd
├── 00-setup.html
└── rsconnect
└── documents
└── 00-setup.Rmd
└── shinyapps.io
└── jjallaire
└── learnr-tutorial-00-setup.dcf
5 directories, 3 files
✔ learnr@renv_deps* 146 MiB
Warnings when I look for deps on the whole learnr pkg
❯❯ warnings()
Warning messages:
1: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/rsconnect/documents/00-setup.Rmd' is not a regular file
2: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/rsconnect/documents/00-setup.Rmd': it is a directory
3: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/rsconnect/documents/00-setup.Rmd' is not a regular file
4: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/00-setup/rsconnect/documents/00-setup.Rmd': it is a directory
5: In file(con, "r") : cannot open the connection
6: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/01-data-basics/rsconnect/documents/01-data-basics.Rmd' is not a regular file
7: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/01-data-basics/rsconnect/documents/01-data-basics.Rmd': it is a directory
8: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/01-data-basics/rsconnect/documents/01-data-basics.Rmd' is not a regular file
9: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/01-data-basics/rsconnect/documents/01-data-basics.Rmd': it is a directory
10: In file(con, "r") : cannot open the connection
11: partial match of 'eval' to 'evaluate.exercise'
12: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03a-data-manip-filter/rsconnect/documents/03a-data-manip-filter.Rmd' is not a regular file
13: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03a-data-manip-filter/rsconnect/documents/03a-data-manip-filter.Rmd': it is a directory
14: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03a-data-manip-filter/rsconnect/documents/03a-data-manip-filter.Rmd' is not a regular file
15: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03a-data-manip-filter/rsconnect/documents/03a-data-manip-filter.Rmd': it is a directory
16: In file(con, "r") : cannot open the connection
17: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03b-data-manip-mutate/rsconnect/documents/03b-data-manip-mutate.Rmd' is not a regular file
18: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03b-data-manip-mutate/rsconnect/documents/03b-data-manip-mutate.Rmd': it is a directory
19: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03b-data-manip-mutate/rsconnect/documents/03b-data-manip-mutate.Rmd' is not a regular file
20: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03b-data-manip-mutate/rsconnect/documents/03b-data-manip-mutate.Rmd': it is a directory
21: In file(con, "r") : cannot open the connection
22: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03c-data-manip-summarise/rsconnect/documents/03c-data-manip-summarise.Rmd' is not a regular file
23: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03c-data-manip-summarise/rsconnect/documents/03c-data-manip-summarise.Rmd': it is a directory
24: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03c-data-manip-summarise/rsconnect/documents/03c-data-manip-summarise.Rmd' is not a regular file
25: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/examples/03c-data-manip-summarise/rsconnect/documents/03c-data-manip-summarise.Rmd': it is a directory
26: In file(con, "r") : cannot open the connection
27: In base::file(file, encoding = encoding) :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/inst/tutorials/quiz_question/rsconnect/documents/quiz_question.Rmd' is not a regular file
28: In readLines(con, warn = FALSE) :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/inst/tutorials/quiz_question/rsconnect/documents/quiz_question.Rmd': it is a directory
29: In file(con, "r") :
'raw = FALSE' but '/Users/barret/Documents/git/rstudio/learnr/learnr/inst/tutorials/quiz_question/rsconnect/documents/quiz_question.Rmd' is not a regular file
30: In file(con, "r") :
cannot open file '/Users/barret/Documents/git/rstudio/learnr/learnr/inst/tutorials/quiz_question/rsconnect/documents/quiz_question.Rmd': it is a directory
31: In file(con, "r") : cannot open the connection
The text was updated successfully, but these errors were encountered:
When finding deps in a folder that contains a folder with
.Rmd
at the end of the name, renv tries toreadLines
on the folder.Example setup:
Warnings when I look for deps on the whole
learnr
pkgThe text was updated successfully, but these errors were encountered: