sahilseth / funr Goto Github PK
View Code? Open in Web Editor NEWSimple Utility providing Shell Access to all R Functions
License: Other
Simple Utility providing Shell Access to all R Functions
License: Other
For example, funr calls a function, which fails. In this case the only relevant error is of that function.
flowr run
try: flowr -h run to get more details on this function.
Error in run(wd = opts_flow$get("flow_run_path"), execute = FALSE) :
Please choose a pipeline to run, from the above list.
Error in funr(args = commandArgs(trailingOnly = TRUE), script_name = "flowr", :
Execution halted
The last line (Error in funr(args = commandArgs(trailingOnly = TRUE), script_name = "flowr",
), does not add value.
[root@650ee0cf2924 tmp]# flowr -v ultraseq::merge_sheets x=tumor___normal_1.mutect.txt .filter='judgement=='KEEP'' outfile=tmp.tsv
args:
-vultraseq::merge_sheetsx=tumor___normal_1.mutect.txt.filter=judgement==KEEPoutfile=tmp.tsv
script_args:
-v
using func:
ultraseq::merge_sheets
with final args:
x=tumor___normal_1.mutect.txt.filter=judgement==KEEPoutfile=tmp.tsv
loading pkg: ultraseq
Loading required package: assertthat
ultraseq: genomic flows made faster
args:
$x
$outfile
$.filter
[1] NA
$...
get_params: we have 3 parameters
x=tumor___normal_1.mutect.txt
.filter=judgement==KEEP
outfile=tmp.tsv
starting process with: x=tumor___normal_1.mutect.txt
[1] "tumor___normal_1.mutect.txt"
processed param: x value tumor___normal_1.mutect.txt
starting process with: .filter=judgement==KEEP
[1] "judgement"
processed param: .filter value NA
starting process with: outfile=tmp.tsv
[1] "tmp.tsv"
processed param: outfile value tmp.tsv
$x
[1] "tumor___normal_1.mutect.txt"
$outfile
[1] "tmp.tsv"
$.filter
[1] NA
Starting merge_sheets with params
x: tumor___normal_1.mutect.txt
outfile: tmp.tsv
.filter: NA
List of 3
$ x : chr "tumor___normal_1.mutect.txt"
$ outfile: chr "tmp.tsv"
$ .filter: logi NA
bug1.R
:
x <- file.path(funr::get_script_path(), "bug2.R") # works
source(x)
source(file.path(funr::get_script_path(), "bug2.R")) # fails
bug2.R
:
print("Hi")
Rscript bug1.R
:
[1] "Hi"
Error in path.expand(path) : invalid 'path' argument
Calls: source ... file.path -> <Anonymous> -> normalizePath -> path.expand
Execution halted
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.