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
3baf1620
Commit
3baf1620
authored
Oct 27, 2020
by
Languillaume, Antoine
Browse files
Update archive name
parent
2ad7e4ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
download_project.R
View file @
3baf1620
...
...
@@ -32,21 +32,21 @@ if(length(current_files) != 0){
## Download and unzip project
url_repo
<-
paste0
(
"https://git.wageningenur.nl/pps/PPS_data_management/-/archive/"
,
"master/PPS_data_management-
refacto
r.zip"
)
"master/PPS_data_management-
maste
r.zip"
)
download.file
(
url
=
url_repo
,
destfile
=
file.path
(
current_wd
,
"project.zip"
))
unzip
(
"project.zip"
)
## Copy project file to working directory
list_files
<-
list.files
(
"./PPS_data_management-
refacto
r/"
,
list_files
<-
list.files
(
"./PPS_data_management-
maste
r/"
,
full.names
=
TRUE
)
file.copy
(
from
=
list_files
,
to
=
"./"
,
recursive
=
TRUE
)
## Get rid of un necessary files
unlink
(
file.path
(
current_wd
,
"./PPS_data_management-
refacto
r/"
),
unlink
(
file.path
(
current_wd
,
"./PPS_data_management-
maste
r/"
),
recursive
=
TRUE
)
unlink
(
c
(
"project.zip"
,
"download_project.R"
,
"README.md"
))
...
...
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