Skip to content

Commit

Permalink
cran corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
patzaw committed Jan 11, 2024
1 parent 22a3ba4 commit 64f58c9
Show file tree
Hide file tree
Showing 46 changed files with 323 additions and 211 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: bscui
Type: Package
Title: Build SVG Custom User Interface
Version: 0.1.1
Version: 0.1.2
Authors@R: c(
person(
"Patrice", "Godard",
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# bscui 0.1.1
# bscui 0.1.2

* CRAN corrections: documentation and policies.

Expand Down
2 changes: 0 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ from [SwissBioPics](https://www.swissbiopics.org/name/Animal_cell).

```{r, echo=FALSE, results='asis'}
ec <- readLines(system.file("examples", "main-example.R", package = "bscui"))
ec <- sub("^[\\]dontrun[{]$", "## Not run:", ec)
ec <- sub("^[}]$", "## End (Not run)", ec)
cat('```r', sep="\n")
cat(ec, sep="\n")
cat('```', sep="\n")
Expand Down
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,22 @@ figure
##################################@
### Saving the figure ----

## Not run:
if(interactive()){
## Temporary directory to save example file
tdir <- tempdir()

## Interactive html file
figure |> htmlwidgets::saveWidget(file="figure.html")
f_path <- file.path(tdir, "figure.html")
figure |> htmlwidgets::saveWidget(file=f_path)
cat(f_path)

## PNG image
f_path <- file.path(tdir, "figure.png")
figure |>
set_bscui_options(show_menu = FALSE) |>
export_bscui_to_image(file="figure.png", zoom=2)
## End (Not run)
export_bscui_to_image(file=f_path, zoom=2)
cat(f_path)
}
```

### Figures in ‘shiny’
Expand Down
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 27 additions & 28 deletions docs/articles/bscui.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 22 additions & 23 deletions docs/articles/web_only/SVG-examples.html

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 12 additions & 5 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions docs/news/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
bscui: bscui.html
SVG-examples: web_only/SVG-examples.html
last_built: 2024-01-09T08:56Z
last_built: 2024-01-11T05:53Z
urls:
reference: https://patzaw.github.io/bscui/reference
article: https://patzaw.github.io/bscui/articles
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/add_bscui_element.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/bscui-shiny.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions docs/reference/bscui.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/reference/bscuiProxy.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/click_bscui_element.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions docs/reference/export_bscui_to_image.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/reference/get_bscui_svg.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/order_bscui_elements.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/remove_bscui_elements.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 14 additions & 7 deletions docs/reference/set_bscui_attributes.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/reference/set_bscui_options.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/reference/set_bscui_selection.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/reference/set_bscui_styles.html

Large diffs are not rendered by default.

21 changes: 14 additions & 7 deletions docs/reference/set_bscui_ui_elements.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/reference/update_bscui_attributes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/update_bscui_selection.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/update_bscui_styles.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/reference/update_bscui_ui_elements.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/search.json

Large diffs are not rendered by default.

49 changes: 24 additions & 25 deletions inst/doc/bscui.html

Large diffs are not rendered by default.

13 changes: 10 additions & 3 deletions inst/examples/main-example.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,19 @@ figure
##################################@
### Saving the figure ----

\dontrun{
if(interactive()){
## Temporary directory to save example file
tdir <- tempdir()

## Interactive html file
figure |> htmlwidgets::saveWidget(file="figure.html")
f_path <- file.path(tdir, "figure.html")
figure |> htmlwidgets::saveWidget(file=f_path)
cat(f_path)

## PNG image
f_path <- file.path(tdir, "figure.png")
figure |>
set_bscui_options(show_menu = FALSE) |>
export_bscui_to_image(file="figure.png", zoom=2)
export_bscui_to_image(file=f_path, zoom=2)
cat(f_path)
}
2 changes: 1 addition & 1 deletion inst/pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pkgdown_sha: ~
articles:
bscui: bscui.html
SVG-examples: web_only/SVG-examples.html
last_built: 2024-01-09T08:56Z
last_built: 2024-01-11T05:53Z
urls:
reference: https://patzaw.github.io/bscui/reference
article: https://patzaw.github.io/bscui/articles
Expand Down
13 changes: 10 additions & 3 deletions man/bscui.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions man/export_bscui_to_image.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions man/set_bscui_attributes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions man/set_bscui_options.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 64f58c9

Please sign in to comment.