Skip to content

Commit

Permalink
Update sourcing R scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangycbnu committed Nov 1, 2021
1 parent f3044c5 commit cd0d655
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Changes in version 1.7.1 (07-27-2021):
* Update tutorial data files
* Update knitr dependency for bioconductor tests
* Update sourcing R scripts

Changes in version 1.5.1 (12-02-2020):
* Update log from base 10 to base 2.
Expand Down
2 changes: 1 addition & 1 deletion R/Maaslin2.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (identical(environment(), globalenv()) &&
script_dir <- dirname(script_path)
script_name <- basename(script_path)

for (R_file in dir(script_dir, pattern = "*.R"))
for (R_file in dir(script_dir, pattern = "*.R$"))
{
if (!(R_file == script_name))
source(file.path(script_dir, R_file))
Expand Down

0 comments on commit cd0d655

Please sign in to comment.