mara
November 20, 2019, 3:52pm
2
I can't tell if this is an issue with how this is being rendered on the site, or if it's in your code, but it looks like there are spaces in your variable name. In R, this isn't valid, and, if you do use such a name, it needs to be surrounded in backticks. (See Details re. syntactically valid names here ).
See also this issue in the RStudio IDE repository re. Hindi support:
opened 02:12PM - 11 Dec 18 UTC
closed 06:30AM - 19 Feb 21 UTC
bug
ace
encoding
stale
I opened an issue of community.rstudio.com and they asked me to open an issue he… re.
https://community.rstudio.com/t/r-studio-doesnt-have-good-hindi-support/19721/4
I have been using r studio for many years and I never noticed it until recently. When I wanted to write my book in R studio through bookdown I chose Hindi as my language.
It turns out that when I type Hindi the curser moves ahead of the words and it becomes very hard to understand which word are you on. Especially when you want to delete something.
Then I switched to vscode and I found it had no such problem writing Hindi Unicode. So did atom. Somehow rstudio have such problem.
Just find any text in Hindi from Google and try to delete it and you will understand what I mean. Let me find some random text for you.
```
मोहनदास करमचन्द गांधी (२ अक्टूबर १८६९ - ३० जनवरी १९४८) भारत एवं भारतीय स्वतंत्रता आंदोलन के एक प्रमुख राजनैतिक एवं आध्यात्मिक नेता थे। वे सत्याग्रह (व्यापक सविनय अवज्ञा) के माध्यम से अत्याचार के प्रतिकार के अग्रणी नेता थे, उनकी इस अवधारणा की नींव सम्पूर्ण अहिंसा के सिद्धान्त पर रखी गयी थी जिसने भारत को आजादी दिलाकर पूरी दुनिया में जनता के नागरिक अधिकारों एवं स्वतन्त्रता के प्रति आन्दोलन के लिये प्रेरित किया। उन्हें दुनिया में आम जनता महात्मा गांधी के नाम से जानती है। संस्कृत भाषा में महात्मा अथवा महान आत्मा एक सम्मान सूचक शब्द है। गांधी को महात्मा के नाम से सबसे पहले १९१५ में राजवैद्य जीवराम कालिदास ने संबोधित किया था।[1]। उन्हें बापू (गुजराती भाषा में બાપુ बापू यानी पिता) के नाम से भी याद किया जाता है। सुभाष चन्द्र बोस ने ६ जुलाई १९४४ को रंगून रेडियो से गांधी जी के नाम जारी प्रसारण में उन्हें राष्ट्रपिता कहकर सम्बोधित करते हुए आज़ाद हिन्द फौज़ के सैनिकों के लिये उनका आशीर्वाद और शुभकामनाएँ माँगीं थीं।[2] प्रति वर्ष २ अक्टूबर को उनका जन्म दिन भारत में गांधी जयंती के रूप में और पूरे विश्व में अन्तर्राष्ट्रीय अहिंसा दिवस के नाम से मनाया जाता है।
```
Please fix this if possible.
And there is a problem with viewing a data frame which has a column written in Hindi.
Also the linked community issue, here:
I have been using r studio for many years and I never noticed it until recently. When I wanted to write my book in R studio through bookdown I chose Hindi as my language.
It turns out that when I type Hindi the curser moves ahead of the words and it becomes very hard to understand which word are you on. Especially when you want to delete something.
Then I switched to vscode and I found it had no such problem writing Hindi Unicode. So did atom. Somehow rstudio have such problem.
Just find any text in Hindi from Google and try to delete it and you will understand what I mean. Let me find some random text for you.
मोहनदास करमचन्द गांधी (२ अक्टूबर १८६९ - ३० जनवरी १९४८) भारत एवं भारतीय स्वतंत…
It will help to troubleshoot if you could please turn this into a self-contained reprex (short for repr oducible ex ample).
install.packages("reprex")
If you've never heard of a reprex before, you might want to start by reading the tidyverse.org help page . The reprex dos and don'ts are also useful.
There's also a nice FAQ on how to do a minimal reprex for beginners, below:
A minimal reproducible example consists of the following items:
A minimal dataset, necessary to reproduce the issue
The minimal runnable code necessary to reproduce the issue, which can be run
on the given dataset, and including the necessary information on the used packages.
Let's quickly go over each one of these with examples:
Minimal Dataset (Sample Data)
You need to provide a data frame that is small enough to be (reasonably) pasted on a post, but big enough to reproduce your issue.
Let's say, as an example, that you are working with the iris data frame
head(iris)
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species
#> 1 5.1 3.5 1.4 0.…
What to do if you run into clipboard problems
If you run into problems with access to your clipboard, you can specify an outfile for the reprex, and then copy and paste the contents into the forum.
reprex::reprex(input = "fruits_stringdist.R", outfile = "fruits_stringdist.md")
For pointers specific to the community site, check out the reprex FAQ .
2 Likes