-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in strsplit(sample_name_long, split = ";") : non-character argument #104
Comments
I've tried again with an example OPUS file, same error.
|
I have the same issue: |
For the warning in strptime, we tracked the problem down to unexpected whitespace in the timezone; in
I'm reluctant to post this in a PR because I'm unsure where this tab character is coming from, and whether this is better handled somewhere in the parsing functions. |
Hi Dylan, thanks for bringing this issue up! I'll checkout a solution that fixes the locale setups we know, possibly this week. |
Thanks for a first ad-hoc solution, i'll investigate a bit further and see whether we can use a fix that generalizes. |
Great, we can provide a sample file if needed. |
please, very happy if you do so. baumann dash philipp at protonmail dot com or here. would as well be great if we can add this file to the test suite to check for that datetime behavior (let's see how this is linked to OPUS/software/language/timezone settings). |
Thanks everyone. I'll also send an example file! |
This should be fixed now :-) Would be great if you can briefly check out the PR and test with your example file, too. Also, would be good to have an extra test file. Good to not test CRAN size limit, but it can't hurt to solidify testing with reverse engineering ;-) In that case, we would also provide institution and device details in the package. More infos what was done in PR. @mtalluto regex for parsing for extra tab/space was useful, and it provides stable to get rid of the warning. Overall, we were missing to parse "sample" and "history" blocks when |
cc @ThomasKnecht , would be great if you can give a short review of the code (if time) :-) |
Thank you all for catching this bug 💯 |
@mtalluto regarding the fix of the warning; the correct time info we could only find in the history. It is a messy file (Windows origin plus proprietary Bruker), so that's the best we can do to parse the text lines. |
Tested from my end, our file now loads with no warnings. I sent you the file via email, feel free to include with the tests. |
Thanks! |
welcome, thanks also for the file. And if you have any suggestions or comments in the future, happy to discuss. |
Hi,
I'm having a strange issue with reading OPUS files and requesting only the data. This used to work, about a year ago:
The error message looks like this:
Reading the file works as expected with
data_only = FALSE
.The text was updated successfully, but these errors were encountered: