i'm currently running a r program where i use already 9 argument with "commandArgs()" for my bash script, but it seems i can't use a 10th argument, the program doesn't take it, is there a way i could do it and won't have to make an other program just for that ? thanks in advance for your help ! After some question here is the script:
library(tidyverse)
library(readr)
library(DT)Args
library(data.table)
args <- commandArgs()
table1 <- read.csv(args[6])
table2 <- read.csv(args[7])
idem <-as.character(intersect(table1$x, table2$x))
same <- data.frame( nom_colonne = idem)
pasidem <-as.character(setdiff(table1$x, table2$x))
passame <- data.frame( nom_colonne = pasidem)
pasidem2 <-as.character(setdiff(table2$x, table1$x))
notsame <- data.frame( nom_colonne = pasidem2)
write.csv(same, args[8], row.names = F, quote=F)
write.csv(passame, args[9], row.names = F, quote=F)
write.csv(passame, args[10], row.names = F, quote=F)
As you can see i ask args 6 to 10 (since 1 to 5 already taken by the system) but it seems i can't use a 10th argument