Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cocoVisR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stephanie Wegscheidl
cocoVisR
Commits
a11186f4
Commit
a11186f4
authored
Jul 26, 2018
by
Stephanie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CoCoQuest import first steps in the right direction
parent
014baa05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
19 deletions
+37
-19
dashboard/server.R
dashboard/server.R
+34
-16
dashboard/ui.R
dashboard/ui.R
+3
-3
No files found.
dashboard/server.R
View file @
a11186f4
...
...
@@ -50,34 +50,52 @@ server <- function(input, output) {
#CoCOQuest Data import and showing into data site
output
$
lastLoadedQuest
<-
renderText
({
lastCoCoQuest
})
output
$
quest
<-
renderDataTable
({
output
$
questTimes
<-
renderDataTable
({
inFile
<-
input
$
quest
if
(
is.null
(
inFile
))
return
(
NULL
)
#loading CoConUT data
json_data_quest
<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
cocoquest.df
<<-
json_data_quest
[[
"data"
]]
#loading CoCoQuest data
json_data_quest
<<-
fromJSON
(
paste
(
inFile
$
datapath
,
sep
=
""
),
flatten
=
TRUE
)
#print("json_data_qest")
#print(json_data_quest)
#lastCoCoQuest <<- inFile$name
lastCoCoQuest
<<-
inFile
$
name
json_data_quest
$
unix_starttime
<-
as.numeric
(
json_data_quest
$
startTime
)
/
1000
json_data_quest
$
unix_endtime
<-
as.numeric
(
json_data_quest
$
endTime
)
/
1000
starttime
<-
anytime
(
json_data_quest
$
unix_starttime
)
endtime
<-
anytime
(
json_data_quest
$
unix_endtime
)
#unix parsed
questTimes
<<-
c
(
starttime
,
endtime
)
print
(
"questTime"
)
print
(
questTimes
)
# setting the table style
mat
<-
matrix
(
questTimes
,
1
,
2
)
#mat <- matrix(as.Date(questTimes),1,2)
print
(
"mat"
)
print
(
mat
)
colnames
(
mat
)
<-
c
(
"Starttime"
,
"Endtime"
)
#setting the table style
datatable
(
cbind
(
cocoquest.df
),
cbind
(
mat
),
options
=
list
(
searching
=
TRU
E
,
autoWidth
=
TRUE
,
rownames
=
FALS
E
,
scroller
=
TRUE
,
scrollX
=
TRUE
,
scrollY
=
"500px"
,
fixedHeader
=
TRUE
,
searching
=
FALS
E
,
#
autoWidth = TRUE,
rownames
=
TRU
E
,
#
scroller = TRUE,
#
scrollX = TRUE,
#
scrollY = "500px",
class
=
'cell-border stripe'
)
)
)
})
...
...
dashboard/ui.R
View file @
a11186f4
...
...
@@ -29,13 +29,13 @@ ui <- dashboardPage(
tabItem
(
tabName
=
"upload"
,
h2
(
"Upload here:"
),
fileInput
(
"nut"
,
"Select CoConUT Data (*.json):"
,
multiple
=
FALS
E
,
multiple
=
TRU
E
,
accept
=
c
(
"text/json"
,
"text/comma-separated-values,text/plain"
,
".json"
)),
fileInput
(
"quest"
,
"Select CoCoQuest Data (*.json):"
,
multiple
=
FALS
E
,
multiple
=
TRU
E
,
accept
=
c
(
"text/json"
,
"text/comma-separated-values,text/plain"
,
...
...
@@ -56,7 +56,7 @@ ui <- dashboardPage(
h2
(
"CoCoQuest Data here:"
),
"Last Loaded CoCoQuest Data: "
,
textOutput
(
"lastLoadedQuest"
),
dataTableOutput
(
"quest"
)
dataTableOutput
(
"quest
Times
"
)
),
...
...
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