Answers.Body: <p>If you launch like <code>docker run -p 8888:8888 jupyter/r-notebook</code> you will get the help page like a widget and a warning in your cell output. Check your browser, maybe is blocking pop-up elements.</p>
  <p><a href="https://i.sstatic.net/KRqZI.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KRqZI.png" alt="r-notebook" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-21T10:00:48.560Z
Answers.Text: Thanks for showing me what the widget looks like. I do see this now (i.e. working correctly), but only when **not** setting `JUPYTER_ENABLE_LAB=yes`
Answers.UserDisplayName: Dan Bolser
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-19T11:40:11.460Z
Answers.LastActivityDate: 2021-10-19T11:40:11.460Z
Answers.UserDisplayName: zorbax
Answers.Body: <p>I met the same problem. R after v4.1.1 seem to have problems with <code>repr_html</code>.
  I fixed the problem by following the quotes.</p>
  <blockquote>
  <p>This tiny commit solves a long standing problem while trying to read help from inside jupyterlab.</p>
  <p>In order not to wait for the PR to be merged, you may just install from @renkun-ken 's fork:
  <code>devtools::install_github(&quot;renkun-ken/repr&quot;, ref = &quot;fix-html-filter&quot;)</code></p>
  </blockquote>
  <h4>Reference</h4>
  <p><a href="https://github.com/IRkernel/repr/pull/144#event-5589475824" rel="nofollow noreferrer">https://github.com/IRkernel/repr/pull/144#event-5589475824</a></p>
  <p><a href="https://github.com/IRkernel/repr/issues/143" rel="nofollow noreferrer">https://github.com/IRkernel/repr/issues/143</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-15T11:14:15.700Z
Answers.Text: Thanks. I mentioned this here:
  https://github.com/jupyter/docker-stacks/issues/1494
Answers.UserDisplayName: Dan Bolser
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-02-23T11:39:42.023Z
Answers.Text: The PR is now merged and installing repr==1.1.4 resolved the issue for me.
Answers.UserDisplayName: dwagnerkc
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-12T07:43:19.423Z
Answers.LastActivityDate: 2021-11-12T07:43:19.423Z
Answers.UserDisplayName: Akiyama
Answers.Body: <p>I think error is not related to <code>?</code>. This is what I see when I try <code>?seq</code>:</p>
  <p><a href="https://i.sstatic.net/D5Tc8.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/D5Tc8.png" alt="enter image description here" /></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-21T10:01:44.497Z
Answers.Text: Yes, `help(seq)` and `?seq` are both a problem. I think it's related to trusted JS execution... I think...
Answers.UserDisplayName: Dan Bolser
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-19T10:28:00.120Z
Answers.LastActivityDate: 2021-10-19T10:28:00.120Z
Answers.UserDisplayName: zx8754
Body: <p>I'm using <a href="https://hub.docker.com/r/jupyter/r-notebook" rel="nofollow noreferrer">this Jupyter notebook</a> to work on R... How do I do the equivalent of <code>?someFun</code>?</p>
  <p>When I run that in the notebook, I get:</p>
  <pre><code>Warning message in seq_len(head.end.idx):
  “first element used of 'length.out' argument”
  ERROR while rich displaying an object: Error in seq_len(head.end.idx): argument must be coercible to non-negative integer
  
  Traceback:
  1. FUN(X[[i]], ...)
  ...
  </code></pre>
  <h3>Update</h3>
  <p>When I execute <code>docker run jupyter/r-notebook</code> I notice that it <strong>does</strong> pop up the widget (after throwing the error). Not it isn't a popup window, but a panel at the bottom of the workbook. My notebook is 'Trusted', which I think is significant, but I don't know how to turn it off.</p>
  <p>When I execute <code>docker run -e JUPYTER_ENABLE_LAB=yes jupyter/r-notebook</code> I get the error and the widget <strong>does not</strong> pop up. I'm not sure how to set or inspect the JS trust in that environment. I suspect it's related. I don't see any blocked popups in the browser.</p>
  <p>Strange that even when it works (the widget opens at the bottom of the browser) I still get an error in the output.</p>
  
Tags: <r><jupyter>
Title: R help in Jupyter notebook?
ThreadText: # R help in Jupyter notebook?
  
  (Asked by: username_0 on 2021-10-18)
  
  I'm using [this Jupyter notebook](https://hub.docker.com/r/jupyter/r-notebook) to work on R... How do I do the equivalent of `?someFun`?
  
  When I run that in the notebook, I get:
  
  ```
  Warning message in seq_len(head.end.idx):
  “first element used of 'length.out' argument”
  ERROR while rich displaying an object: Error in seq_len(head.end.idx): argument must be coercible to non-negative integer
  
  Traceback:
  1. FUN(X[[i]], ...)
  ...
  
  ```
  
  ### Update
  
  When I execute `docker run jupyter/r-notebook` I notice that it **does** pop up the widget (after throwing the error). Not it isn't a popup window, but a panel at the bottom of the workbook. My notebook is 'Trusted', which I think is significant, but I don't know how to turn it off.
  
  When I execute `docker run -e JUPYTER_ENABLE_LAB=yes jupyter/r-notebook` I get the error and the widget **does not** pop up. I'm not sure how to set or inspect the JS trust in that environment. I suspect it's related. I don't see any blocked popups in the browser.
  
  Strange that even when it works (the widget opens at the bottom of the browser) I still get an error in the output.
  
  **Tags:** r, jupyter
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2021-10-19. Score: 3
  
  If you launch like `docker run -p 8888:8888 jupyter/r-notebook` you will get the help page like a widget and a warning in your cell output. Check your browser, maybe is blocking pop-up elements.
  
  [![r-notebook](https://i.sstatic.net/KRqZI.png)](https://i.sstatic.net/KRqZI.png)
  
  > **Comments:**
  > **username_0**: Thanks for showing me what the widget looks like. I do see this now (i.e. working correctly), but only when **not** setting `JUPYTER_ENABLE_LAB=yes`  
  
  ---
  
  ### Answer by username_2 on 2021-11-12. Score: 1
  
  I met the same problem. R after v4.1.1 seem to have problems with `repr_html`.
  I fixed the problem by following the quotes.
  
  > This tiny commit solves a long standing problem while trying to read help from inside jupyterlab.
  >
  > In order not to wait for the PR to be merged, you may just install from @renkun-ken 's fork:
  > `devtools::install_github("renkun-ken/repr", ref = "fix-html-filter")`
  
  #### Reference
  
  <https://github.com/IRkernel/repr/pull/144#event-5589475824>
  
  <https://github.com/IRkernel/repr/issues/143>
  
  > **Comments:**
  > **username_0**: Thanks. I mentioned this here: https://github.com/jupyter/docker-stacks/issues/1494  
  > **username_3**: The PR is now merged and installing repr==1.1.4 resolved the issue for me.  
  
  ---
  
  ### Answer by username_4 on 2021-10-19. Score: 0
  
  I think error is not related to `?`. This is what I see when I try `?seq`:
  
  [![enter image description here](https://i.sstatic.net/D5Tc8.png)](https://i.sstatic.net/D5Tc8.png)
  
  > **Comments:**
  > **username_0**: Yes, `help(seq)` and `?seq` are both a problem. I think it's related to trusted JS execution... I think...  
  
  ---
  
  