Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellga committed May 2, 2024
1 parent f80b8af commit c62a8bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rdocs"
version = "0.1.40"
version = "0.1.41"
edition = "2021"
repository = "https://github.com/daniellga/rdocs/"

Expand Down
2 changes: 1 addition & 1 deletion rdocs/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: rdocs
Title: Create Quarto documentation for R files from comments
Version: 0.1.40
Version: 0.1.41
Authors@R:
person("Daniel", "Gurgel", , "[email protected]", role = c("aut", "cre"))
Description: Generate R documentation in Quarto format based on comments in code files.
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,10 @@ fn output_file(hash: HashMap<String, Vec<String>>, folder_name_hidden: &str) {
}
}

fn eval_examples(examples: Vec<String>) {
fn eval_examples(mut examples: Vec<String>) {
// Construct the output text.
// remove empty lines resulting in ";;".
examples.retain(|s| !s.is_empty());
let output_text = examples.join(";");

let output = Command::new("Rscript")
Expand Down

0 comments on commit c62a8bd

Please sign in to comment.