Closed MichailKnauel closed 8 years ago
Interesting, do you have any foreign language characters or other exotic characters in your data? Can you share some of your data with me so I can try to reproduce the problem?
I use the iris dataset for testing the app. The problem above I already figured out today. I used this file: pcatest5.txt After deleting the last column with the text the error stopped. But I have a knew one... First of all the file I use at the moment: pcatest6tab.txt I get following code in the developer console of chrome:
Listening on http://127.0.0.1:45188
Attaching package: ‘DT’
The following objects are masked from ‘package:shiny’:
dataTableOutput, renderDataTable
Attaching package: ‘psych’
The following objects are masked from ‘package:ggplot2’:
%+%, alpha
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Attaching package: ‘Hmisc’
The following object is masked from ‘package:psych’:
describe
The following objects are masked from ‘package:base’:
format.pval, round.POSIXt, trunc.POSIXt, units
Loading required package: bit
Attaching package bit
package:bit (c) 2008-2012 Jens Oehlschlaegel (GPL-2)
creators: bit bitwhich
coercion: as.logical as.integer as.bit as.bitwhich which
operator: ! & | xor != ==
querying: print length any all min max range sum summary
bit access: length<- [ [<- [[ [[<-
for more help type ?bit
Attaching package: ‘bit’
The following object is masked from ‘package:psych’:
keysort
The following object is masked from ‘package:base’:
xor
Loading required package: ff
Attaching package ff
- getOption("fftempdir")=="/tmp/Rtmps2Sj7r"
- getOption("ffextension")=="ff"
- getOption("ffdrop")==TRUE
- getOption("fffinonexit")==TRUE
- getOption("ffpagesize")==65536
- getOption("ffcaching")=="mmnoflush" -- consider "ffeachflush" if your system stalls on large writes
- getOption("ffbatchbytes")==16777216 -- consider a different value for tuning your system
- getOption("ffmaxbytes")==536870912 -- consider a different value for tuning your system
Attaching package: ‘ff’
The following objects are masked from ‘package:bit’:
clone, clone.default, clone.list
The following objects are masked from ‘package:utils’:
write.csv, write.csv2
The following objects are masked from ‘package:base’:
is.factor, is.ordered
Loading required package: ffbase
Attaching package: ‘ffbase’
The following objects are masked from ‘package:ff’:
[<-.ff, [.ff, [<-.ffdf, [.ffdf
The following objects are masked from ‘package:base’:
%in%, table
Standard deviations are plot by default. See argument numMode of plot.tabplot.
Warning in run(timeoutMs) : data length exceeds size of matrix
Stack trace (innermost first):
78: [.data.frame
77: [
76: fix_data
75: ggpairs
74: renderPlot [/srv/shiny-server/Interactive_PCA_Explorer-master/server.R#61]
66: output$corr_plot
1: runApp
Warning in run(timeoutMs) :
Error in [.data.frame: undefined columns selected
Error: C stack usage 7972992 is too close to the limit
Cheers, Michail
It seems that your data files are tab separated, not comma separated. For example, when I read them in to R, this is what I see:
dat <- read.csv("pcatest5.txt")
> dat
Sepal.length.Sepal.width.Petal.length.Petal.width.Species
1 5.1\t3.5\t1.4\t0.2\tI. setosa
2 4.9\t3\t1.4\t0.2\tI. setosa
3 4.7\t3.2\t1.3\t0.2\tI. setosa
4 4.6\t3.1\t1.5\t0.2\tI. setosa
5 5\t3.6\t1.4\t0.2\tI. setosa
6 5.4\t3.9\t1.7\t0.4\tI. setosa
7 4.6\t3.4\t1.4\t0.3\tI. setosa
8 5\t3.4\t1.5\t0.2\tI. setosa
etc.
The app currently only accepts CSV files, so I think that's the main reason why you're getting errors.
To read your tab-separated files into R, you can use read.delim
instead of read.csv
I get following error when I switch on the tab "PC plot" of your App.
When I look into the errorconsole of the browser I see following code:
Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()
Do you have an idea what the problem could be?The tabs before the "PC Plot" work properly.
Cheers, Michail