Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bioinfo
datautils
Commits
18006dac
Commit
18006dac
authored
May 02, 2016
by
Holger Brandl
Browse files
set a default cran mirror
parent
6ef0f261
Changes
1
Hide whitespace changes
Inline
Side-by-side
R/rendr/rend.R
View file @
18006dac
...
...
@@ -6,6 +6,12 @@
#https://github.com/edwindj/docopt.R
#http://www.slideshare.net/EdwindeJonge1/docopt-user2014
## set a default cran r mirror and customize environment
r
=
getOption
(
"repos"
)
# hard code the UK repo for CRAN
r
[
"CRAN"
]
=
"http://ftp5.gwdg.de/pub/misc/cran/"
options
(
repos
=
r
)
rm
(
r
)
# load the docopt library
suppressMessages
(
if
(
!
require
(
"docopt"
))
install.packages
(
"docopt"
))
suppressMessages
(
if
(
!
require
(
"knitr"
))
install.packages
(
"knitr"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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