I'm trying to get an R-script to work, the instructions on how I set up/ installed the packages can be found here https://forum.qiime2.org/t/automatic-manifest-maker-in-r/2921 If you'd like to try the script please add
#!/usr/bin/env Rscript
to the first line of the script and de/reactivate R-Env (Credit; Duckmayr) syntax errors (in R-script)
The new issue is that it now returns a new error;
(R-Env) qiime2@qiime2core2018-8:~/Desktop/MACE_DEMUX_FASTQs/barcode08$
~/Taxonomy.R
── Attaching packages ─────────────────────────────────────── tidyverse
1.2.1 ──
✔ ggplot2 2.2.1 ✔ purrr 0.2.4
✔ tibble 1.4.2 ✔ dplyr 0.7.5
✔ tidyr 0.8.1 ✔ stringr 1.3.1
✔ readr 1.1.1 ✔ forcats 0.3.0
── Conflicts ──────────────────────────────────────────
tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
Error in `[<-.data.frame`(`*tmp*`, "direction", value = "forward") :
replacement has 1 row, data has 0
Calls: [<- -> [<-.data.frame
Execution halted
I have never done anything using R before so please forgive me if this is a dumb question.
a little context; This is being performed in a conda environment on a vm ubuntu machine and is supposed to create a file called Manifest.csv which contains metadata from the .fastq files in the current directory. I take no credit for the script, it is open access and I did not write it.