Title: | Shiny Dashboard for 'learnitr' Data |
---|---|
Description: | A dashboard to explore data generated by 'learnitr' code, such as the 'learnitdown', or the 'learnitgrid' R package. This is a lightweight learning analytics solution for the 'learnitr' ecosystem. |
Authors: | Martin Lecocq [aut], Philippe Grosjean [aut, cre] |
Maintainer: | Philippe Grosjean <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.0.1 |
Built: | 2024-10-28 05:06:01 UTC |
Source: | https://github.com/learnitr/learnitdashboard |
Get a vector of module named by module and title from a selected course
get_modules(selected_course, modules_init, acad_year)
get_modules(selected_course, modules_init, acad_year)
selected_course |
Selected course, can be "All" or specific. |
modules_init |
The table from which it gets the modules. |
acad_year |
The academic year of the users. |
A vector of module name by module and title
# Need a reactive context and a MongoDB database
# Need a reactive context and a MongoDB database
Get a vector of users_id named by logins and lastnames from a selected course and with enrolled only or everyone
get_users(selected_course, only_enrolled, users2_init, acad_year)
get_users(selected_course, only_enrolled, users2_init, acad_year)
selected_course |
Selected course, can be "All" or specific. |
only_enrolled |
Only the enrolled users or everyone. |
users2_init |
The table from which it gets the users. |
acad_year |
The academic year of the users. |
A vector of users_id name by logins and lastnames
# Need a reactive context and a MongoDB database
# Need a reactive context and a MongoDB database
is_request function
is_request(input)
is_request(input)
input |
The input to check if there is a request |
TRUE if there is a request about this input, FALSE if not
# Need a reactive context
# Need a reactive context
Prepare a given dataframe's content with html tags, such as links or images, to be rendered in a timeline.
prepare_content(data_frame)
prepare_content(data_frame)
data_frame |
data.frame on which prepare the content. |
A vector of html links.
# Need special data frame
# Need special data frame
Prepare the request to get data from MongoDB from chosen arguments and a vector containing different ones.
prepare_request(request_vector, args, type = NULL)
prepare_request(request_vector, args, type = NULL)
request_vector |
Vector of prepared arguments from selected choices. |
args |
Vector of selected arguments to use in the request. |
type |
Type of table to query. Can be h5p, learnr or shiny. |
A string request with the chosen arguments.
rv <- c("color" = "red", "type" = "flower") prepare_request(rv, "color")
rv <- c("color" = "red", "type" = "flower") prepare_request(rv, "color")
Prepare a given data frame's css style, such as background-color, to be rendered in a timeline.
prepare_style(data_frame)
prepare_style(data_frame)
data_frame |
data.frame on which prepare the content. |
A vector of css styles
# Need special data frame
# Need special data frame
Prepare the url and alt_url of a given dataframe, making them an html link.
prepare_url_alr_url(data_table)
prepare_url_alr_url(data_table)
data_table |
The data frame from which the url and alt_url are prepared. |
The given data frame with the url and alt_url prepared as html link.
# Need a special data frame
# Need a special data frame
Plot the Progression of the Students in the Data Science Exercises
progression_plot(login, course, module = NULL, sdd_url)
progression_plot(login, course, module = NULL, sdd_url)
login |
The student (GitHub) login. |
course |
The institutional identifier of the course, e.g., "S-BIOG-015". |
module |
The module to restrict to, or NULL for all modules in the course. |
sdd_url |
The URL to the SDD MongoDB database. |
This function is used for its side-effect of plotting a chart comparing the student and the class progression.
: Philippe Grosjean (phgrosjean\@sciviews.org)
#progression_plot(<insert_login_here, "S-BIOG-015", # module = NULL, sdd_url = "mongodb://127.0.0.1:27017/sdd")
#progression_plot(<insert_login_here, "S-BIOG-015", # module = NULL, sdd_url = "mongodb://127.0.0.1:27017/sdd")
Run the Shiny Application
run_app( onStart = NULL, options = list(), enableBookmarking = NULL, uiPattern = "/", ... )
run_app( onStart = NULL, options = list(), enableBookmarking = NULL, uiPattern = "/", ... )
onStart |
A function that will be called before the app is actually run.
This is only needed for |
options |
Named options that should be passed to the |
enableBookmarking |
Can be one of |
uiPattern |
A regular expression that will be applied to each |
... |
arguments to pass to golem_opts.
See |