Skip to content

Commit 371294c

Browse files
authored
release 0.1.4 (#48)
* swap in new videos in vignettes * bump version * update links in README * update code of conduct * update README, cran comments * update cran comments * clean up docs * update cran comments
1 parent 7191149 commit 371294c

13 files changed

+230
-102
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
^\.Rproj\.user$
33
^README\.Rmd$
44
^README-.*\.png$
5-
^CONDUCT\.md$
65
^\.travis\.yml$
76
^cran-comments\.md$
87
^codecov\.yml$
@@ -11,3 +10,4 @@
1110
^docs$
1211
^\.github$
1312
^checklist-new-service\.md$
13+
^CODE_OF_CONDUCT\.md$

CODE_OF_CONDUCT.md

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or
31+
advances of any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email
35+
address, without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards
42+
of acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies
54+
when an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail
56+
address, posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at [INSERT CONTACT
63+
METHOD]. All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.0,
118+
available at https://www.contributor-covenant.org/version/2/0/
119+
code_of_conduct.html.
120+
121+
Community Impact Guidelines were inspired by [Mozilla's code of conduct
122+
enforcement ladder](https://github.com/mozilla/diversity).
123+
124+
[homepage]: https://www.contributor-covenant.org
125+
126+
For answers to common questions about this code of conduct, see the FAQ at
127+
https://www.contributor-covenant.org/faq. Translations are available at https://
128+
www.contributor-covenant.org/translations.

CONDUCT.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: vembedr
22
Title: Embed Video in HTML
3-
Version: 0.1.3.9003
3+
Version: 0.1.4
44
Authors@R: c(
55
person(
66
given = "Ian",

NEWS.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
## vembedr 0.1.3.9000
1+
## vembedr 0.1.4
22

3-
- add support for [Microsoft Stream](https://www.microsoft.com/en-us/microsoft-365/microsoft-stream), which offers an enterprise video service; this will likely be for use internal to an organization. (#38)
3+
- adds support for [Microsoft Stream](https://www.microsoft.com/en-us/microsoft-365/microsoft-stream), which offers an enterprise video service; this will likely be for use internal to an organization. (#38)
44
- if you have a recent version of [usethis](https://usethis.r-lib.org) installed, `suggest_embed()` will copy the suggested code to your clipboard. (#32)
55
- sets the default `height` to 300 pixels, and introduces an argument `ratio`, to set the aspect ratio; legal values are `"16by9"` or `"4by3"`. If you set the `width` and `height`, `ratio` is ignored. If you specify only one of `width` or `height`, `ratio` is used to calculate the other. (#33)
66
- adds three functions to help with formatting; they are all pipeable with `embed_*()` functions:

R/s3-classes.R

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#' vembedr S3 Classes
22
#'
33
#' Knowledge of these classes is not needed for day-to-day use. Rather,
4-
#' it is a bookkeeping device used to make it clearer to add a new service
5-
#' in development.
4+
#' it is a bookkeeping device used to make it clearer to a developer
5+
#' how to add a new service.
66
#'
77
#' We use S3 classes to distinguish an embed object, and to denote which
88
#' service it uses. Objects of these classes are created by [embed_url()]
@@ -16,22 +16,22 @@
1616
#'
1717
#' There is an additional class attached according to the service:
1818
#'
19-
#' **`vembedr_embed_youtube`**
20-
#' **`vembedr_embed_youtube_short`**
21-
#' **`vembedr_embed_vimeo`**
22-
#' **`vembedr_embed_channel9`**
23-
#' **`vembedr_embed_box`**
24-
#' **`vembedr_embed_msstream`**
19+
#' - **`vembedr_embed_youtube`**
20+
#' - **`vembedr_embed_youtube_short`**
21+
#' - **`vembedr_embed_vimeo`**
22+
#' - **`vembedr_embed_channel9`**
23+
#' - **`vembedr_embed_box`**
24+
#' - **`vembedr_embed_msstream`**
2525
#'
2626
#' To support parsing, there is an internal S3 class attached to the URL
2727
#' being processed. It is named according to the service:
2828
#'
29-
#' **`vembedr_url_youtube`**
30-
#' **`vembedr_url_youtube_short`**
31-
#' **`vembedr_url_vimeo`**
32-
#' **`vembedr_url_channel9`**
33-
#' **`vembedr_url_box`**
34-
#' **`vembedr_url_msstream`**
29+
#' - **`vembedr_url_youtube`**
30+
#' - **`vembedr_url_youtube_short`**
31+
#' - **`vembedr_url_vimeo`**
32+
#' - **`vembedr_url_channel9`**
33+
#' - **`vembedr_url_box`**
34+
#' - **`vembedr_url_msstream`**
3535
#'
3636
#' @name vembedr-s3-classes
3737
#'

README.Rmd

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,16 @@ knitr::opts_chunk$set(
2323
)
2424
```
2525

26-
The goal of the vembedr package is to make it a little bit easier for you to embed videos into your **rmarkdown** documents and your **shiny** apps. Four services are currently supported:
26+
The goal of vembedr is to make it a little bit easier for you to embed videos into your **RMarkdown** documents and your **Shiny** apps.
27+
In this verison, five services are supported:
2728

2829
- YouTube
2930
- Vimeo
3031
- Microsoft Channel 9 (including UseR! 2016 and 2017 videos).
3132
- Box
33+
- Microsoft Stream
3234

33-
## New to version 0.1.3.9000
35+
## New to version 0.1.4
3436

3537
- new functions to help you format: `use_rounded()`, `use_align()`, and `use_bs_responsive()`.
3638
- new services supported:
@@ -56,36 +58,42 @@ devtools::install_github("ijlyttle/vembedr")
5658

5759
This project supports two documentation-websites, built using [pkgdown](https://pkgdown.r-lib.org):
5860

59-
- [CRAN version](https://ijlyttle.github.io/vembedr)
60-
- latest [developent version](https://ijlyttle.github.io/vembedr/dev) from GitHub
61+
- [CRAN version](https://ijlyttle.github.io/vembedr/)
62+
- latest [developent version](https://ijlyttle.github.io/vembedr/dev/) from GitHub
6163

6264
### Usage
6365

64-
The most useful function might be `embed_url()`. If the URL is from one of the supported services, it will do the right thing:
66+
The most useful function might be `embed_url()`.
67+
If the URL is from one of the supported services, it will do the right thing:
6568

6669
```r
6770
library("vembedr")
6871

6972
embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs")
7073
```
7174

72-
To see this in action, please see `vignette("vembedr")`.
75+
The video is not embedded in this README file as is rendered to Markdown; to see embedded videos, please see `vignette("vembedr")`. Each of the supported services, e.g. YouTube, is discussed in `vignette("embed")`.
7376

74-
To see details on each of the services supported, see `vignette("embed")`. You can also modify the appearance and the start time, for example:
77+
The functions are designed to be piped.
78+
For example, here's how you can modify the appearance and the start time:
7579

7680
```r
7781
embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs") %>%
7882
use_start_time("1m32") %>%
7983
use_align("center")
8084
```
85+
8186
To see these functions in action, see `vignette("modify")`.
8287

8388
### Caveats
8489

85-
Be aware that not all videos will play when embedded at a different site (like your RMarkdown document). This is due to licensing issues.
90+
- Be aware that, due to licensing issues, not all videos will play when embedded at a different site (like your HTML document).
8691

87-
The RStudio viewer will embed YouTube and Vimeo videos, but not others. Everthing should work well in a browser like Chrome.
92+
- The RStudio viewer will embed YouTube and Vimeo videos, but not others.
93+
Videos from all services should be rendered as you expect in a browser like Chrome.
94+
95+
- Some of the formatting, e.g. rounded corners, does not render on mobile sites.
8896

8997
## Code of Conduct
9098

91-
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.
99+
Please note that the vembedr project is released with a [Contributor Code of Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.

README.md

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ status](https://github.com/ijlyttle/vembedr/workflows/R-CMD-check/badge.svg)](ht
88
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
99
<!-- badges: end -->
1010

11-
The goal of the vembedr package is to make it a little bit easier for
12-
you to embed videos into your **rmarkdown** documents and your **shiny**
13-
apps. Four services are currently supported:
11+
The goal of vembedr is to make it a little bit easier for you to embed
12+
videos into your **RMarkdown** documents and your **Shiny** apps. In
13+
this verison, five services are supported:
1414

1515
- YouTube
1616
- Vimeo
1717
- Microsoft Channel 9 (including UseR\! 2016 and 2017 videos).
1818
- Box
19+
- Microsoft Stream
1920

20-
## New to version 0.1.3.9000
21+
## New to version 0.1.4
2122

2223
- new functions to help you format: `use_rounded()`, `use_align()`,
2324
and `use_bs_responsive()`.
@@ -45,8 +46,8 @@ devtools::install_github("ijlyttle/vembedr")
4546
This project supports two documentation-websites, built using
4647
[pkgdown](https://pkgdown.r-lib.org):
4748

48-
- [CRAN version](https://ijlyttle.github.io/vembedr)
49-
- latest [developent version](https://ijlyttle.github.io/vembedr/dev)
49+
- [CRAN version](https://ijlyttle.github.io/vembedr/)
50+
- latest [developent version](https://ijlyttle.github.io/vembedr/dev/)
5051
from GitHub
5152

5253
### Usage
@@ -60,11 +61,13 @@ library("vembedr")
6061
embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs")
6162
```
6263

63-
To see this in action, please see `vignette("vembedr")`.
64+
The video is not embedded in this README file as is rendered to
65+
Markdown; to see embedded videos, please see `vignette("vembedr")`. Each
66+
of the supported services, e.g. YouTube, is discussed in
67+
`vignette("embed")`.
6468

65-
To see details on each of the services supported, see
66-
`vignette("embed")`. You can also modify the appearance and the start
67-
time, for example:
69+
The functions are designed to be piped. For example, here’s how you can
70+
modify the appearance and the start time:
6871

6972
``` r
7073
embed_url("https://www.youtube.com/watch?v=uV4UpCq2azs") %>%
@@ -76,14 +79,19 @@ To see these functions in action, see `vignette("modify")`.
7679

7780
### Caveats
7881

79-
Be aware that not all videos will play when embedded at a different site
80-
(like your RMarkdown document). This is due to licensing issues.
82+
- Be aware that, due to licensing issues, not all videos will play
83+
when embedded at a different site (like your HTML document).
8184

82-
The RStudio viewer will embed YouTube and Vimeo videos, but not others.
83-
Everthing should work well in a browser like Chrome.
85+
- The RStudio viewer will embed YouTube and Vimeo videos, but not
86+
others. Videos from all services should be rendered as you expect in
87+
a browser like Chrome.
88+
89+
- Some of the formatting, e.g. rounded corners, does not render on
90+
mobile sites.
8491

8592
## Code of Conduct
8693

87-
Please note that this project is released with a [Contributor Code of
88-
Conduct](CONDUCT.md). By participating in this project you agree to
89-
abide by its terms.
94+
Please note that the vembedr project is released with a [Contributor
95+
Code of
96+
Conduct](https://contributor-covenant.org/version/2/0/CODE_OF_CONDUCT.html).
97+
By contributing to this project, you agree to abide by its terms.

checklist-new-service.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ Methods based on service:
2727

2828
## Other videos
2929

30-
```r
31-
embed_youtube("3pKpfs5EK_s")
32-
```
3330

3431
```r
35-
embed_youtube("KvX8MijgeW8")
32+
# Otis Redding: Shake
33+
embed_youtube("3pKpfs5EK_s")
3634
```
3735

38-
```r
39-
embed_youtube("uKQ01MvF8mY")
40-
```

0 commit comments

Comments
 (0)