MLGlobalHealth / phyloSI-RakaiAgeGender

Creative Commons Attribution 4.0 International
4 stars 2 forks source link

bug in get_table_artnaive_deepseq.R #12

Closed melodiemonod closed 1 year ago

melodiemonod commented 1 year ago

Hi @alexblenkinsop

I get an error in l.262 here https://github.com/MLGlobalHealth/phyloSI-RakaiAgeGender/blob/main/src/confidential_data_pipeline/tables/get_table_artnaive_deepseq.R

Error: unexpected input in: "tmp <- arti[ COMM=='inland' & AGEYRS %between% c(15, 50)] |> merge(x=_"

Do you think you could try to bugfix it please?

FYI make sure that your file directories are correctly specified here file.path(gitdir, 'config.R') (otherwise youll get an error at l.21)

Many thanks

alexblenkinsop commented 1 year ago

Hi @melodiemonod , I believe Andrea generated this script. @abriz97 are you able to take a look? Thanks

abriz97 commented 1 year ago

Hi both, the code ran without issues for me. I assume the issue is due to the placeholder "_" for the pipe "|>"? I hence split the 'sentence' in 2 lines.

Can I ask you which version of R you are using? I was assuming that "_" and "|>" were working together since 4.1.0 but I am probably wrong