Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define a standard metadata file using DESCRIPTION #4

Open
rpc5102 opened this issue Oct 30, 2020 · 3 comments
Open

Define a standard metadata file using DESCRIPTION #4

rpc5102 opened this issue Oct 30, 2020 · 3 comments
Assignees

Comments

@rpc5102
Copy link
Member

rpc5102 commented Oct 30, 2020

Metadata inside apps can be useful for applying logic. Typically, in R, we will use a Debian Control File named DESCRIPTION to do this.

DESCRIPTION

Title: Hello Shiny!
Author: RStudio, Inc.
AuthorUrl: http://www.rstudio.com/
License: GPL-3
DisplayMode: Showcase
Tags: getting-started
Type: Shiny

Additional fields

  • Chapter (string)
  • xAPI Logging (boolean)
  • Learning Locker endpoint? (string/url)
@neilhatfield
Copy link
Member

neilhatfield commented Oct 30, 2020

Additional Field:
Learning Outcomes--this could be a single string or a list of strings
Nickname: string (shortened version of App's title)

@rpc5102 rpc5102 transferred this issue from EducationShinyAppTeam/Sample_App Nov 2, 2020
@rpc5102
Copy link
Member Author

rpc5102 commented Nov 2, 2020

Title: Sample App - A Lengthy Title
ShortName: Sample App
Date: 2020-11-02
Authors@R: c(person("Lorem", "Ipsum", email = "[email protected]",
  role = c("aut", "cre")))
Chapter: Sample Chapter
Description: This app is focused on the common types of xyz.
LearningObjectives: The student is expected to learn about xyz and the effects of abc.
DisplayMode: Normal
URL: https://psu-eberly.shinyapps.io/Sample_App
BugReports: https://github.com/EducationShinyAppTeam/Sample_App/issues
License: CC-BY-NC-SA-4.0
Tags: simulation
Type: Shiny

rpc5102 added a commit that referenced this issue Nov 5, 2020
Proposed format for #4
@rpc5102
Copy link
Member Author

rpc5102 commented Nov 5, 2020

Reading in multiple values for a given key:

> DESCRIPTION <- as.data.frame(read.dcf("DESCRIPTION"))
> obj <- eval(parse(text = DESCRIPTION$LearningObjectives))
> obj
[1] "The student will learn to understand Concept A in way z."        "The student will learn to understand Concept B as description y"
> obj[2]
[1] "The student will learn to understand Concept B as description y"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants