Skip to content
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 if (rvs != "No RAW file specified!") { : the condition has length > 1 #65

Open
xianxiongma opened this issue Sep 3, 2023 · 16 comments
Assignees

Comments

@xianxiongma
Copy link

S <- rawrr::sampleFilePath() |> rawrr::readSpectrum(scan = 1:9)
Error in if (rvs != "No RAW file specified!") { : the condition has length > 1
Can you tell me how to deal with it

@cpanse
Copy link
Collaborator

cpanse commented Sep 4, 2023

can you please provide 1. OS 2. rawrr version and 3. the output of sessionInfo() C

@cpanse cpanse self-assigned this Sep 4, 2023
@cpanse
Copy link
Collaborator

cpanse commented Sep 4, 2023

what is the output of rawrr::sampleFilePath() ?

@xianxiongma
Copy link
Author

what is the output of rawrr::sampleFilePath() ?

S <- rawrr::sampleFilePath()
S
[1] "D:/ProgramFiles/R/R-4.2.0/library/rawrr/extdata/sample.raw"

@xianxiongma
Copy link
Author

can you please provide 1. OS 2. rawrr version and 3. the output of sessionInfo() C

sessionInfo()
R version 4.2.0 (2022-04-22 ucrt)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363)

Matrix products: default

locale:
[1] LC_COLLATE=Chinese (Simplified)_China.utf8 LC_CTYPE=Chinese (Simplified)_China.utf8
[3] LC_MONETARY=Chinese (Simplified)_China.utf8 LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_China.utf8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] rawrr_1.8.1

loaded via a namespace (and not attached):
[1] compiler_4.2.0 tools_4.2.0

@cpanse
Copy link
Collaborator

cpanse commented Sep 5, 2023

can you please rerun rawrr::installRawrrExe() and send me the output.

@xianxiongma
Copy link
Author

can you please rerun rawrr::installRawrrExe() and send me the output.

rawrr::installRawrrExe()
trying URL 'https://github.com/fgcz/rawrr/releases/download/1.7.10/rawrr.1.7.10.exe'
Content type 'application/octet-stream' length 28672 bytes (28 KB)
downloaded 28 KB

MD5 5c3b6d0135ffe550bc04615cfc77aaba C:\Users\Administrator\AppData\Local/R/cache/R/rawrr/rawrrassembly/rawrr.exe
[1] 0

@cpanse
Copy link
Collaborator

cpanse commented Sep 7, 2023

so far this looks good. can you please try some other functions?

f <- rawrr::sampleFilePath()
rawrr::readFileHeader(f)
rawrr::readIndex(f) |> head()
rawrr::readSpectrum(f, scan = 1:9)

if it still does not work, I would propose a quick zoom.

C

@xianxiongma
Copy link
Author

Still reporting the same error, I still can't run the example

rawrr::readFileHeader(f)
Error in if (rvs != "No RAW file specified!") { :
the condition has length > 1

rawrr::readIndex(f) |> head()
Error in if (rvs != "No RAW file specified!") { :
the condition has length > 1

@xianxiongma
Copy link
Author

so far this looks good. can you please try some other functions?

f <- rawrr::sampleFilePath()
rawrr::readFileHeader(f)
rawrr::readIndex(f) |> head()
rawrr::readSpectrum(f, scan = 1:9)

if it still does not work, I would propose a quick zoom.

C

I ran in both computers, reported the same error, can you help me solve it?

@cpanse
Copy link
Collaborator

cpanse commented Sep 7, 2023

@xianxiongma quick zoom in 15minutes? 0710 UTC
https://ethz.zoom.us/j/63334146797

@xianxiongma
Copy link
Author

@xianxiongma quick zoom in 15minutes? 0710 UTC https://ethz.zoom.us/j/63334146797

Quick zoom? I don't understand, what should I do? I can't open the above URL

@xianxiongma
Copy link
Author

@xianxiongma quick zoom in 15minutes? 0710 UTC https://ethz.zoom.us/j/63334146797

Quick zoom? I don't understand, what should I do? I can't open the above URL

I just want to how to edit obitrap raw file

@cpanse
Copy link
Collaborator

cpanse commented Sep 7, 2023

@xianxiongma quick zoom in 15minutes? 0710 UTC https://ethz.zoom.us/j/63334146797

Quick zoom? I don't understand, what should I do? I can't open the above URL
I wonder if we can have a video session (using zoom) to fix the issue. would that work for you?

@cpanse
Copy link
Collaborator

cpanse commented Sep 7, 2023

@xianxiongma quick zoom in 15minutes? 0710 UTC https://ethz.zoom.us/j/63334146797

Quick zoom? I don't understand, what should I do? I can't open the above URL

I just want to how to edit obitrap raw file

of note, rawrr can only read Orbitrap data.

@xianxiongma
Copy link
Author

@xianxiongma quick zoom in 15minutes? 0710 UTC https://ethz.zoom.us/j/63334146797

Quick zoom? I don't understand, what should I do? I can't open the above URL
I wonder if we can have a video session (using zoom) to fix the issue. would that work for you?

No problem!

@jjGG
Copy link

jjGG commented Sep 7, 2023

Hello @xianxiongma maybe you could try to set your region, location and language format to US and the number format to "point" as separator and not "comma".
best regards
jonas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants