similar to: Chinese characters encoding problem with XML

Displaying 20 results from an estimated 140 matches similar to: "Chinese characters encoding problem with XML"

2012 May 31
1
possible bug in "R Editor"
Dear all, I clicked "File-New Script" to open a R Editor, typed some commands in it and then saved it to a file. If the location where I tried to save the script contained Chinese Character, R Editor complained, Error: invalid input 'E:\Some.Chinese.Characters\new_file.R' in 'utf8towcs' > sessionInfo() R version 2.15.0 (2012-03-30) Platform: i386-pc-mingw32/i386
2011 Sep 29
1
Warning: changing locked binding for ...
Dear all, I use the R R Under development (unstable) (2011-09-28 r57099). When I load the RQDA package, it issues warnings. As the RQDA package developer, what should I deal with such message? Thank you very much. > library(gWidgetsRGtk2) Loading required package: gWidgets > library(RQDA) Loading required package: DBI Loading required package: RSQLite Use 'RQDA()' to start the
2012 Oct 06
3
vector is not assigned correctly in for loop
Hi there, Here is a minimum working example: ---------------------------------------------------------------- lower = 0 upper = 1 n_bins = 50 interval = (upper - lower) / n_bins bins = vector(mode="numeric", length=n_bins) breaks = seq(from=lower + interval, to=upper, by=interval) for(idx in breaks) { bins[idx / interval] = idx } print(bins)
2017 Jun 29
1
Windows iconv() "failure" in certain locales
>>>>> Uwe Ligges <ligges at statistik.tu-dortmund.de> >>>>> on Wed, 28 Jun 2017 18:45:59 +0200 writes: > On 27.06.2017 17:36, Martin Maechler wrote: >> This is a continuation of the R-devel thread with subject >> "suggestion to fix packageDescription() for Windows users" : >> >> As I said there, a
2008 Jun 17
2
try catch block
How can I use the try catch block such that if this statement fails xml <- xmlTreeParse(xmlTxt, useInternal=TRUE) then this statement is executed xml <- xmlMalFormed() ? This code does not work but assuming its somewhere along these lines: tryCatch(xml <- xmlTreeParse(xmlTxt, useInternal=TRUE), xml <- xmlMalFormed(f1)) -- View this message in context:
2017 Jun 27
3
Windows iconv() "failure" in certain locales
This is a continuation of the R-devel thread with subject "suggestion to fix packageDescription() for Windows users" : As I said there, a patch should rather address the underlying problem in packageDescription rather than a kludgy workaround patch for citation(). (For that same reason, Ben Marwick proposed to fix packageDescription() rather than the symptom seen in citation().)
2010 Oct 08
4
Bug in as.POSIXct regarding AM/PM
Dear All, I encounted in a problem with as.POSIXct() function. > as.POSIXct("2009/03/26 01:00:00 AM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA > as.POSIXct("2009/03/26 02:00:00 PM" , format="%Y/%m/%d %I:%M:%S %p") [1] NA I have tried this in the R version 2.11.1, R version 2.10.1 and R version 2.9.2 . They all does not work. The operation system is
2010 Sep 25
0
error with browseURL
> link="http://search.soufun.com/bbs/search.jsp?fld=all&city=%b9%e3%d6%dd&forum=%bd%f1%c8%d5%c0%f6%c9%e1%28%e2%f9%be%b0%bb%a8%d4%b0%29&sl=post&q=%c4%cf%b9%fa%b0%c2%c1%d6%c6%a5%bf%cb%bb%a8%d4%b0%20%ce%ac%c8%a8&serachtype=all&fw=forum&sort=score&imageField.x=25&imageField.y=8" > browseURL(link) Error in shell.exec(url) : file name conversion
2010 Nov 02
2
can not built a package
Dear all, I tried to build a package from source, and ran into a problem. >R CMD build RQDA * checking for file 'RQDA/DESCRIPTION' ... OK * preparing 'RQDA': * checking DESCRIPTION meta-information ... OK ERROR copying to build directory failed I searched and found this http://r.789695.n4.nabble.com/tar-problem-when-using-R-CMD-build-on-Windows-td2734636.html > SET
2009 Sep 12
2
could not find function "Varcov" after upgrade of R?
After upgrading R to 2.9.2, I can't use the anova() fuction. It says "could not find function "Varcov" ". What's wrong with my computer? Help needed, thanks! Yao Zhu Department of Urology Fudan University Shanghai Cancer Center No. 270 Dongan Road, Shanghai, China [[alternative HTML version deleted]]
2012 Aug 14
2
A drawing problem with R
Dear R-help mailing list, I have a drawing problem with R: I need to draw an horizontal axis with date, here is the test code: > ticks <- c("2004-01-22","2005-01-22","2006-01-22","2007-01- 22","2008-01-22","2009-01-22","2010-01-22","2011-01-22","2012-01-22") > ats <-
2014 Jul 28
1
Parsing and deparsing of escaped unicode characters
In both R and JSON (and many other languages), unicode characters can be escaped using a backslash followed by a lowercase "u" and a 4 digit hex code. However when deparsing a character vector in R on Windows, the non-latin characters get escaped as "<U+" followed by their 4 digit hex code and ">": > x <- "I like \u5BFF\u53F8" > cat(x) I like
2009 Sep 15
0
chinese character support issue of rcom
Dear Sir, rcom is a great package of R. Yet it seems that there is some problem of Chinese character supporting. comGetPropery() always get the part of the Chinese character. Any suggestion would be appreciated. Thanks. Michael > library(rcom) Loading required package: rscproxy > txe<-comCreateObject("Excel.Application") > comSetProperty(txe,"Visible",TRUE);
2011 Apr 07
1
R 2.13.0-beta for Windows, file.copy() throws suspicious errors due to default value of copy.mode
While checking packages against R 2.13.0-beta on Windows, I have run into a few strange error messages related to copying files. The errors all relate to file.copy() and have the form of: Error in Sys.chmod(to[okay], file.info(from[okay])$mode, TRUE) : 'mode' must be of length at least one After half a day of tinkering, the best reproducible example I can come up with involves using
2011 Apr 04
0
[R-sig-ME] Documentation for the glm module in jags/rjags?
It turns out that when I use GUI (file-change dir) to set the working directory, R will crash. If I use setwd() instead, the example runs well. Regards, On 4 April 2011 00:17, Wincent <ronggui.huang@gmail.com> wrote: > OK, I dig into the problem and found that Chinese character in the path > should be blamed. > Once the path rename to English only, it works. > > Regards,
2017 Jun 17
2
suggestion to fix packageDescription() for Windows users
Recently I was trying to cite a package where the authors have ? and ? in their names. I found that on Windows the citation() function did not return the authors' names at all, but on Linux there was no problem (sessionInfos at the bottom): On Windows, no author names are returned: #--------------- > citation("readr") To cite package ?readr? in publications use: (2017).
2012 Sep 14
0
htmlParse pop ups over web pages
Hello All, I am trying to write a routine that loops over some links and parses those links using htmlParse.  The problem is that one of the links may display a pop up window on top of that link's web page.  If there is a pop up, the routine bombs and I get an error message that the url doesn't exist. Does the XML package (or perhaps another package) provide a way to deal with this
2017 Jun 17
3
suggestion to fix packageDescription() for Windows users
Hi Duncan, Thanks for your reply. Yes, it does seem to be specific to the CTYPE setting to Chinese on Windows. If I set it to English using Sys.setlocale() there is no problem, then back to Chinese and the authors disappear: Sys.setlocale("LC_ALL","English") citation("readr") #' To cite package ?readr? in publications use: #' #' Hadley Wickham, Jim
2008 Oct 06
3
Extracting text from html code using the RCurl package.
Dear R-help, I want to download the text from a web page, however what i end up with is the html code. Is there some option that i am missing in the RCurl package? Or is there another way to achieve this? This is the code i am using: > library(RCurl) > my.url <- 'https://stat.ethz.ch/mailman/listinfo/r-help' > html.file <- getURI(my.url, ssl.verifyhost = FALSE,
2017 Jun 18
2
suggestion to fix packageDescription() for Windows users
Hi, Duncan i have forwarded this thread to Nathan, who promised to look into it. Andrie On 17 Jun 2017 17:26, "Duncan Murdoch" <murdoch.duncan at gmail.com> wrote: > On 17/06/2017 9:13 AM, Ben Marwick wrote: > >> Hi Duncan, >> >> Thanks for your reply. Yes, it does seem to be specific to the CTYPE >> setting to Chinese on Windows. If I set it to