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
Cassandra Gould van Praag
UKRN-Repro2020
Commits
62f96856
Commit
62f96856
authored
Jan 06, 2020
by
Cassandra Gould van Praag
Browse files
adds strcmp to debug missing git storage
parent
9b999b73
Changes
3
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
62f96856
.Rproj.user
.Rhistory
.RData
.Ruserdata
AdvancedMethodsWorkshop-OSF_downloadComponents.R
View file @
62f96856
...
...
@@ -3,11 +3,16 @@
# This script will create a directory called "AdvancedMethodsWorkshop-OSF" in the
# same location as this file. Subdirectories will then be created for each component.
# Requires osfr package. You may first need to install devtools from Rstudio Tools>Install Packages
# Requires osfr package.
# Required libraries:
# osfr: You may first need to install devtools from Rstudio Tools>Install Packages
# Then in Rstudio console > devtools::install_github('CenterForOpenScience/osfr')
# Many thanks to @CourtneySoderberg and @DanielLakens for the starting inspiration.
# And pracma for strcmp (debugging)
# Many thanks to @IlsePit,@CourtneySoderberg and @DanielLakens for the starting inspiration.
library
(
osfr
)
library
(
pracma
)
root
<-
getwd
()
root
<-
file.path
(
root
,
'AdvancedMethodsWorkshop-OSF'
)
...
...
@@ -40,6 +45,10 @@ for (comp in 1:nrow(data_mainProj_info)) {
data_comp
<-
osf_ls_files
(
data_comp
,
n_max
=
Inf
)
#print(data_comp,n=Inf)
if
(
strcmp
(
compID
,
'skz3j'
))
{
readline
(
prompt
=
"Press [enter] to continue"
)
}
# tidy up and get our columns as before
tmp2
<-
data.frame
(
data_comp
)
data_comp_info
<-
tmp2
[
keepCol
]
...
...
ukrn-repro2020.Rproj
0 → 100644
View file @
62f96856
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX
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