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

Able to run multi-line R cells in windows #7676

Closed
1 task done
DonJayamanne opened this issue Sep 27, 2021 · 7 comments
Closed
1 task done

Able to run multi-line R cells in windows #7676

DonJayamanne opened this issue Sep 27, 2021 · 7 comments
Labels
testplan-item verified Verification succeeded

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented Sep 27, 2021

Refs: #4576

Complexity: 3

Create Issue

Create Issue


Running R multi-line cells in Notebooks will not work in windows.
Solution:

  • Remove carriage returns from CRLF in lines from cells

Testing

a <- "Hello World"
print(a)
  • Run the cell & select the R kernel
  • Verify the cell runs & output contains the text Hello World
@dbaeumer
Copy link
Member

@DonJayamanne I install R (which was successful) but installing the R Kernel failed on my machine.

Error in IRkernel::installspec() : 
  jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127.
In addition: Warning message:
In system2("jupyter", c("kernelspec", "--version"), FALSE, FALSE) :
  '"jupyter"' not found
> 

Can you please find someone who has already the correct environment or let me know what I need to do to get this working.

@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Sep 28, 2021

@dbaeumer sure thing, please try the following (there are other ways to test, i thought this was the easiest):

  • Install python
  • Install jupyter using the following CLI
    • python -m pip install jupyter notebook
  • Now try to re-install IRKernel (the above steps will ensure Jupyter is in the current path)

Can you please find someone who has already the correct environmen

Sure thing, pinging others in the team. Thanks

@DavidKutu @rchiodo @joyceerhl Please could one of you try this as well. Thanks

  • Optionally you can use a docker container with R in it & connect to that remotely (this container supports R kernels jupyter/datascience-notebook)
    • docker run -p 8888:8888 jupyter/datascience-notebook
    • Look for URL & connect to that remotely.

@rchiodo
Copy link
Contributor

rchiodo commented Sep 28, 2021

Works for me. I can take the test plan item.

@dbaeumer
Copy link
Member

@DonJayamanne thanks for the steps and @rchiodo thanks for taking the test plan item.

@rchiodo
Copy link
Contributor

rchiodo commented Sep 29, 2021

@DonJayamanne we remove our assignment after we're done testing.

@rchiodo rchiodo removed their assignment Sep 29, 2021
@DonJayamanne
Copy link
Contributor Author

DonJayamanne commented Sep 29, 2021

@rchiodo You need to add verfied label if you have tested this & the last person on the list of testers.

I thought you meant it works for you as in, R kernel works for you and are able to test this item.

@DonJayamanne DonJayamanne added the verified Verification succeeded label Sep 29, 2021
@DonJayamanne
Copy link
Contributor Author

Ok, I think i'm mistaken here, i don't think we need verified label for test plan items.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
testplan-item verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

4 participants