starting my R experience with Rstudio I switched to sublime when I started to work with R Markdown. My setup was working well until the sendRepl step broke all of the sudden and I could not get it to work, yet.
I switched to atom and was suprised how easy it was to get it running by using language-R bei LeeDom language-R and the fantastic R-exec by pimentel R-exec.
Everything works fine, but I am missing setting bookmarks and the linenumbers in an Rmd.file in atom. Not sure, if I have overseen something.
Would be great, if someone would let me know, how to set bookmarks and toggle the linenumbers in atom in a Rmd.file. This all works in a R.file, but unfortunately not in a Rmd.
Thanks.
Related
I'm using Sublime Text (Build 4126) on a MacBook Pro (running Monterey 12.2.1) with the R-IDE package. I installed it as described at:
https://packagecontrol.io/packages/R-IDE
i.e., in R: install.packages("languageserver"); then in Sublime: install R-IDE, LSP, and LSP-R from Package Control.
Items under the R-IDE menu work as expected, syntax highlighting works, and the hover feature shows references to other occurrences of the item under the cursor. However, signature help doesn't work. This worked (most of the time) under R-Box (both written by randy3k). I've tried playing with settings files, but really don't know what I'm doing. I suspect this is probably a languageserver issue (https://github.com/REditorSupport/languageserver), but I'm just fumbling around.
Any suggestions on how to get signature help working for R in Sublime Text? Is anyone else not able to get it working?
I successfully set up R in my new Atom editor and can get in-line results using the Hydrogen package. I just noticed, however, that when I run lines to obtain "R Documentation" that would pop up automatically in RStudio, Hydrogen only gives me a check mark in-line result with no associated documentation.
Here is what is going on in my Atom editor when I run ?plot
Here is what happens in RStudio (bottom right pane), which I am hoping I can get in Atom
How can I get this working in Atom?
try hydrogen -> Toggle inspector
I had the same question and actually made a little progress. Perhaps someone more experienced than I can use this to make a package to enable an in-atom help documentation panel for us :)
Anyway you can install the atom package 'script' which will properly output some, but not all, help documents. I have an example of one working & one not working.
Working ?read.csv
Not-working ?geom_bar
I'm a Python beginner and recently came across the Atom editor and the package Hydrogen, that implements the Jupyter notebook. I did so after realizing that running the notebook in Chrome consumed way too many resources and also seemed to be a bit slower.
However, the Atom editor and Hydrogen always output prints within a little frame in the code (see image). Unfortunately, it doesn't use the full window width. I also don't see any console/terminal for installing pip libraries.
Is there a way to have the output in a console below the code, just as in Jupyter, and to have a terminal?
this comes most certainly too late, but in case someone else searches for this:
hit control+shift+P / cmd+shift+P and type "toggle output area".
i have been trying to implement a tikz chunk in bookdown first by myself, then by following this thread.
unfornutately, i keep running into various errors and incompatibilities, such as this one:
Error in tools::texi2dvi(texf, pdf = !to_svg, clean = TRUE) :
unable to run 'pdflatex' on '.\tikzf702b605920.tex'
(even though by itself tinytex::pdflatex('test.tex') works fine)
on his blog and github Yihui Xie mentioned that it's definitely possible, but i wasn't able to find any working example, so i was hoping if perhaps anyone here could share one, please (or point out what am i doing wrong)
#PaulLemmens, i found what was the problem for me. disclaimer here, i use windows and none of my colleagues who use r on linux/macos have this problem.
issue was arising with knitr when engine=tikz is used in one of the chunks. For it to work installation of imagemagick (https://www.imagemagick.org/script/index.php) and GhostScript (https://www.ghostscript.com/) is needed. as well as that, i had to rewrite knitr (https://github.com/darthaline/knitr) slightly. it's a quick and dirty solution, but it worked for me. on line 281 of R/engine.R the path to imagemagick's convert is hardcoded cause otherwise it seems that windows interprets it as 'convert.exe' from System32 directory (ImageMagick PATH not being recognized with engine = "tikz" in knitr)
I've worked for some months with pander/rmarkdown/rstudio without problem, but on this new machine, something as simple as
library(pander)
cars$test="qsdféé"
pander(cars)
give me back "Error in table.expand(x, t.width, justify, sep.col) :
basic_string::_S_create"
I don't understand, because on my previous machine, it works without a flaw.
Same pander version (0.6.0), same configuration of Rstudio (default encoding utf-8), windows 7 on both sides.
It's quite strange because pander has no problem if I have only one accentuated character (car$test="qsdfé") but it's the second that trigger the problem.
In rmarkdown, it makes the compiler stop instantly, with no error message.
This is a bug, which doesn't have a solution (other than reverting R-version) as of now. There is an open issue on github: Link
Issue #296