clusplot.default中出错:object' spannel'未找到

时间:2017-10-04 17:42:44

标签: r shiny

最近我将我的linux服务器部署的闪亮应用程序的R从3.3.3升级到3.4.1,而现在我没有收到群集图,而是发现了这个错误。

没有其他任何改变,无法访问服务器来尝试调试它。我现在所有的都是一条错误信息:

Warning: Error in clusplot.default: object 'spannel' not found
Stack trace (innermost first):
    104: clusplot.default
    103: clusplot
    102: eval
    101: eval
    100: withProgress
     99: renderPlot
     89: <reactive:plotObj>
     78: plotObj
     77: origRenderFunc
     76: output$KM_plot
      1: runApp

据我了解,spannel是一个C函数,遗憾的是我对C一无所知。

简要介绍了它在server.R文件中的显示方式:clusplot(KMData, KM$cluster)

有什么想法吗?

1 个答案:

答案 0 :(得分:1)

R升级搞乱了绑定到StimulusSecs = 0.50001; StimDuration = round(StimulusSecs / ifi); ISISecs = 0.50001; ISI = round(ISISecs / ifi); ITISecs = [1.00001, 2.00001, 3.00001]; intertrial = round(ITISecs / ifi); waitframes = 1; vbl = Screen('Flip', mainwin); t2wait = 1; tic % Stimulus Onset [~, Onset] = Screen('DrawTexture', mainwin, pics(picCounter)); OnScreen = 1; % variable to indicate whether the stim is still onscreen keyPressed = 0; % variable will be 0 until the space key is pressed rt=0; while (GetSecs - Onset) <= t2wait [keyIsDown, secs, keyCode] = KbCheck; if keyPressed == 0 && keyIsDown if keyCode(spaceKey) rt = 1000.*(secs-Onset); keypressed=find(keyCode); elseif keyCode(escKey) ShowCursor; fclose(outfile); Screen('CloseAll'); return; end end % turn the stimulus off if StimulusSecs has elapsed if OnScreen == 1 && ((GetSecs - Onset) >= StimulusSecs) Screen('Flip',wPtr); OnScreen = 0; end % Wait 1 ms before checking again to prevent % overload of the machine at elevated priority WaitSecs(0.001); end 的库,比较shiny的输出,使它们位于正确的目录中。另外,请确保永远不要将 R 作为.libPaths()运行,因为sudo可能会导致整个框崩溃