Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PPS
PPS Data Management
Commits
d6f25aa4
Commit
d6f25aa4
authored
Oct 12, 2020
by
Languillaume, Antoine
Browse files
Add script to download project
parent
6a29433c
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_project.R
0 → 100644
View file @
d6f25aa4
### Download and unzip project on user's computer
current_wd
<-
getwd
()
url_repo
<-
paste0
(
"https://git.wageningenur.nl/langu001/PPS_data_management/-/archive/"
,
"refactor/PPS_data_management-refactor.zip"
)
download.file
(
url
=
url_repo
,
destfile
=
file.path
(
current_wd
,
"project.zip"
))
unzip
(
"project.zip"
)
list_files
<-
list.files
(
"./PPS_data_management-refactor/"
,
full.names
=
TRUE
)
file.copy
(
from
=
list_files
,
to
=
"./"
,
recursive
=
TRUE
)
unlink
(
"project.zip"
)
unlink
(
file.path
(
current_wd
,
"./PPS_data_management-refactor/"
),
recursive
=
TRUE
)
Write
Preview
Supports
Markdown
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