Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swc-bb
swc-pages
2019-11-26-Potsdam-Berlin-Python
Commits
45729b52
Unverified
Commit
45729b52
authored
Jul 20, 2016
by
Francois Michonneau
Browse files
simplify code checking for knitr
parent
9341f9b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/generate_md_episodes.R
View file @
45729b52
generate_md_episodes
<-
function
()
{
if
(
require
(
"knitr"
)
&&
packageVersion
(
"knitr"
)
<
'1.9.19'
)
{
stop
(
"knitr must be version 1.9.20 or higher"
)
}
else
stop
(
"knitr 1.9.20 or above is needed to build the lessons."
)
if
(
require
(
"knitr"
)
&&
packageVersion
(
"knitr"
)
<
'1.9.19'
)
stop
(
"knitr must be version 1.9.20 or higher"
)
if
(
!
require
(
"stringr"
))
stop
(
"The package stringr is required for generating the lessons."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment