psychTestR icon indicating copy to clipboard operation
psychTestR copied to clipboard

i18n bug in parse_markdown

Open klausfrieler opened this issue 3 years ago • 3 comments

I discovered today that psychTestR in conjunction with markdown 1.4 (or lower, for 1.1. it still works) throws an error when using i18n_dict$new. The reason is in parse_markdown in hash_df.R, where parseMarkdown is called with an unused 'file' argument, which is not used but now throws an error (as it evaluates now file to base::file, before it was ignored if text = x was used). Deleting the file argument solves the problem.

klausfrieler avatar Dec 10 '22 16:12 klausfrieler

Sorry, removing the paramter file solves that problem but brings a new problem in i18n_check, I am currently investigating (R 4.1.2, BTW.)

klausfrieler avatar Dec 10 '22 17:12 klausfrieler

Again sorry, error was in the function demo.i18n that I used for testing. So the fix seems to work.

klausfrieler avatar Dec 10 '22 17:12 klausfrieler

Thanks @klausfrieler! This helped me out :)

sebsilas avatar Jan 26 '23 19:01 sebsilas