after updating shiny r package an "invalid JSON input" error - r

I updated my shiny r package and now I got this error:
.clientdatError in fromJSON(content, handler, default.size, depth, allowComments, :
invalid JSON input
Does anyone know what's happening here or where to look for the cause of the problem?
many thanks in advance!
edit. It has something to do with the tags function. When I remove e.g. tags$textarea(id="text", rows=5, cols=8, "this is a text area") the error doesn't appear anymore.

Related

R Shiny: withMathJax does not recognize \begin and \end

I need to render a matrix using withMathJax. While withMathJax works for formulas such as $$e^{i \pi} + 1 = 0$$, it does not recognize matrices.
When I tried withMathJax(helpText('$$\begin{bmatrix}a\\b\end{bmatrix}$$')), I receive an error message that "Error : '\e' is an unrecognized escape in character string starting "'$$\begin{bmatrix}a\b\e".
Does anyone know how to fix it? Thank you in advance.

Rmakdown serious problem with strange warning and error message in out of bound I never encounterd

Oh my god, the problem nearly drive me crazy.
I even used simplest method to create a markdownfile with default format through clicking Knit button, and before it , I chose output format in knit to PDF. whatever I tried knit to HTML or Knit to HTML, it was always giving warning message and didn't output anything. The warning message is below:
processing file: _main.Rmd
output file: _main.knit.md
Output created: _main.html
Output created: D:/R-project/me/0000-MainCottonAkesu/NewProcedure2021/Rmarkdown/_main.html
Warning message:
In value[[3L]](cond) :
Could not force captions - error occurred: 'Error in h(simpleError(msg, call)): error in evaluating the argument 'x' in selecting a method for function 'xmlParent': subscript out of bounds
I tried creating new projects but didn't work. I nearly can't resolve it. Please help me.
Sincerely thanks to you.

Error msg in R: Error in unlist_as_integer(x#subscript) : object 'fancy_mseq' not found

I am reading 2 vcf files in to R. They load fine (I have used 3 different methods to do this (read.vcf, readVCF, and fread) and all are fine) however when I go on to try and do anything with 1 of the vcf files, the msg reads:
Error in unlist_as_integer(x#subscript) : object 'fancy_mseq' not found
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'from': object 'fancy_mseq' not found
Usually I just google error msgs but I can not find anything online about this. Does anyone have any idea what could be causing this error message? Whilst it's hard to be 100% sure because of the vcf format, I can't see anything wrong with the file when I call str(), head() or any other ways of looking at the data.
Thank you!

Is there a way to print custom message when there is no error

I know about tryCatch to customize error message. But is there a way to incorporate messages when there is no error. For example the below code does not show any error. But can we print like " No error and the code is good"
a <- 2+6 # we get no error here.
You can add lines in your code to notify you like below :
a <- 2+6
cat('Everything in fine at this line')

Error in read.table: !header: invalid argument type

I am having the strangest of issues. The following code no longer works:
Test<-matrix(rnorm(9),ncol=3)
colnames(Test)<-c("a","b","c")
write.table(Test,file="Test.txt")
d<-read.table("Test.txt",header=T)
I get:
Error in !header: invalid argument type
I tried rebooting R, it didn't help.
Check class(T). Most likely T was overwritten with a non-boolean value. Restart of R probably loads the saved session.

Resources