workspace

The cause of “bad magic number” error when loading a workspace and how to avoid it?

十年热恋 提交于 2019-11-27 07:55:49
I tried to load my R workspace and received this error: Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: Warning message: file ‘WORKSPACE_Wedding_Weekend_September’ has magic number '#gets' Use of save versions prior to 2 is deprecated I'm not particularly interested in the technical details, but mostly in how I caused it and how I can prevent it in the future. Here's some notes on the situation: I'm running R 2.15.1 on a MacBook Pro running Windows XP on a bootcamp partition. There is something obviously wrong this workspace file, since it weighs in

In Matlab, is it possible to terminate a script, but save all its internal variables to workspace?

纵饮孤独 提交于 2019-11-27 07:52:05
I am running a script, but it is taking much too long so I want to terminate the script. However it has calculated a lot of data which I would ideally not want to throw away. Is there an alternative to ctrl-C with which you save the internal function variables to the workspace? Ideally I'm looking for a Matlab keyboard shortcut like ctrl-C , but if that really can't be done maybe there is a way to do this in the script of my function. Any idea how to let my script react to ctrl-C as well, or maybe a GUI element which I can cancel and then I save the variables through my script? Some similar

detach all packages while working in R

吃可爱长大的小学妹 提交于 2019-11-27 06:08:22
While working to solve another problem I got this problem: I can remove all R objects by: rm(list = ls(all = TRUE)) Is there equivalent command that can detach installed packages during working session? > sessionInfo() R version 2.12.2 (2011-02-25) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=English_United States.1252 [2] LC_CTYPE=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base require(ggplot2) Loading required package

How to recover corrupted Eclipse workspace?

痞子三分冷 提交于 2019-11-27 05:14:20
问题 I just managed to corrupt contents of my Eclipse .metadata directory. Starting up with eclipse -clean did not work out. Deleting .metadata and then importing all projects, plugins and setting does not sound too interesting. I ended up moving .metadata/.plugins/org.eclipse.core.resources/ elsewhere and reimporting my projects only. Are there any tools or best practices to recover workspace? 回答1: I have some experience at recovering from eclipse when it becomes unstartable for whatever reason,

How to link project in eclipse

时光怂恿深爱的人放手 提交于 2019-11-27 03:53:17
问题 I have a java project and I want to develop it without replacing the source code from its place. I want to link my code to my workspace without replace physically? 回答1: Select the Project you want to reference from on Package Explorer Right-click and go to Properties ( or hit Ctrl-Enter ). Under Projects in Java Build Path you can add another project which is currently open. If you want to override a class you can make a copy of it in your current project and move it further up in the

Is there a way to push a MATLAB workspace onto a stack?

我们两清 提交于 2019-11-27 01:23:35
问题 Does anyone know if it's possible to have a stack of workspaces in MATLAB? It would be very convenient, to say the least. I need this for research. We have several scripts which interact in interesting ways. Functions have local variables, but not scripts... 回答1: The regular Matlab function call stack is itself a stack of workspaces. Just using functions is the easiest way to use one, and Matlab's copy-on-write makes this reasonably efficient. But that's probably not what you're asking. There

Eclipse: How do i refresh an entire workspace? F5 doesn't do it

 ̄綄美尐妖づ 提交于 2019-11-27 00:55:00
问题 I have a workspace with a bunch of java projects. If I go to File->Refresh , it doesn't really refresh anything (perhaps the currently selected project). How do I get eclipse to refresh all of the projects? 回答1: It will indeed only refresh the current project (or, more specifically, the current selection in the project explorer). I just click somewhere in the project explorer, do Ctrl + A to select all projects and then press F5 to achieve a complete refresh. 回答2: If you want to refresh all

Disable building workspace process in Eclipse

流过昼夜 提交于 2019-11-27 00:19:16
问题 What is Eclipse doing when building workspace process is running? Can i disable it because it is taking a long time to complete and i dont know if it is necessary. Thank you 回答1: Building workspace is about incremental build of any evolution detected in one of the opened projects in the currently used workspace. You can also disable it through the menu " Project / Build automatically ". But I would recommend first to check: if a Project Clean all / Build result in the same kind of long wait

Create a new workspace in Eclipse

跟風遠走 提交于 2019-11-26 23:52:32
问题 I don't see any menu item I can use to create a new workspace. What should I use to create a new workspace and move some of the projects from existing default workspace to a new workspace? I am using Windows with Eclipse 3.7. 回答1: I use File -> Switch Workspace -> Other... and type in my new workspace name. (EDIT: Added the composite screen shot.) Once in the new workspace, File -> Import... and under General choose "Existing Projects into Workspace. Press the Next button and then Browse for

Change computer name for a TFS Workspace

北城以北 提交于 2019-11-26 23:50:32
问题 My System Administrator renamed my computer. So where it was "MyLaptop2" it is now just "MyLaptop". So now all my source control bindings and checked out files are looking for a workspace with "MyLaptop2". Is there a way to redirect that workspace to my renamed (but still the same) computer? 回答1: This command run in the Developer Command Prompt for Visual Studio did the trick: tf workspaces /updateComputerName:MyOldComputerName /s:"http://MyServer:8080/tfs/MyCollection" It had to be run from