Skip to content

Commit

Permalink
fix(bakelets): Fix R Bakelet to work when no packages are provided
Browse files Browse the repository at this point in the history
  • Loading branch information
ssmirr committed Nov 7, 2018
1 parent ec294d8 commit b07c20e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/bakelets/lang/R.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ class R extends Bakelet {
this.packages = obj.R.packages.trim().split(/\s*,\s*/g);
else if(type = 'object')
this.packages = obj.R.packages;
} else {
this.packages = []
}
}
else {
this.packages = [];
}

let packagesObj = {'cran': this.packages.length!=0 ? true : false, 'packages': this.packages.map(p => `'${p}'`).join() };
let playbookTemplate = path.resolve(
Expand Down

0 comments on commit b07c20e

Please sign in to comment.