R script does not work in snakemake

1

Hello,

I hava an R script (called dalink_st.r) to divide data frame into two columns and then save them to two separate files.

#!/usr/bin/Rscript 
lentele=read.table([email protected][[1]], sep=",")

pirmas=lentele[1]
antras=lentele[2]

write.table(pirmas, [email protected][[1]])
write.table(antras, [email protected][[2]])

I call this script with snakemake rule.

rule all:
    input:
        "outputs/r/pirmas.txt",
        "outputs/r/antras.txt"

rule bandom_r:
    input:
        "inputs/r/lentele.csv"
    output:
        "outputs/r/pirmas.txt",
        "outputs/r/antras.txt"
    conda:
        "env/r4.yaml"
    script:
        "bins/dalink_st.r"

And once I call

snakemake --use-conda

I get an error message
enter image description here

Would appreciate any ideas on why it is not working.

Thank you in advance.


Snakemake


R

• 36 views



Source link