Comments (14)
That's a good idea. Shouldn't be too hard to do. I almost never save my
workspace, but this would be helpful to have around. I'll try to get to
this tomorrow.
2015-03-03 9:55 GMT-05:00 dorianps [email protected]:
It would be extremely useful to have a function that can save the entire
workspace in a single line. Right now is very difficult to keep track of
what is a pointer and what is not, then save them separately, then write
code again to load them on new session. A save-all function can take this
burden away, create cleaner code with one-line saving, and offer to restart
at different levels of a script.—
Reply to this email directly or view it on GitHub
#16.
from antsr.
There are multiple benefits:
- You can restart at any point you left with days in between.
- You can save in one window, and load another window to proceed with a different parameter (no need to run all the code until that point).
- You can avoid having hours lost by unexpected events (blackouts, connection problems).
- Will make the software more usable.
Last night there were multiple network interruptions, so Rstudio died. I spent 2 hours this morning just to reach the same state I had when I started the analysis last night.
from antsr.
Just as a practical matter--do you mount the cluster drive? Mounting the
cluster and then running R/Rstudio on your local machine is much less
sensitive to network blips than running R on the cluster.
2015-03-03 10:18 GMT-05:00 dorianps [email protected]:
There are multiple benefits:
- You can restart at any point you left with days in between.
- You can save in one window, and load another window to proceed with a
different parameter (no need to run all the code until that point).- You can avoid having hours lost by unexpected events (blackouts,
connection problems).- Will make the software more usable.
Last night there were multiple network interruptions, so Rstudio died. I
spent 2 hours this morning just to reach the same state I had when I
started the analysis last night.—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
Hmmm, I only mount it as external drive. You mean I might be able to point my Windows Rstudio to the cluster R in linux and make it work? That would be great. Let me know if you do that.
from antsr.
Hmm...no, that would probably be worse. I'm a bit surprised then that
Rstudio died when the cluster connection failed. I guess it tried to read
or write and couldn't and then hung?
2015-03-03 10:36 GMT-05:00 dorianps [email protected]:
Hmmm, I only mount it as external drive. You mean I might be able to point
my Windows Rstudio to the cluster R in linux and make it work? That would
be great. Let me know if you do that.—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
Yes, off topic, but the way I use it is by calling Rstudio from cluster in an X-server. If the connection to the cluster breaks, Rstudio can't push the display, so it dies. There is an rstudio-server supposed to be better, I am waiting for Michael to install it. Nevertheless, a save function for antsR will be necessary sooner or later.
from antsr.
Ah, OK. So what I was suggesting was to run RStudio on your local machine,
and then just point it to the (mounted) cluster drive to read whenever it
has to load data. That way if the connection gets lost, Rstudio will be
fine and if need be you can save your work locally to continue later.
2015-03-03 11:07 GMT-05:00 dorianps [email protected]:
Yes, off topic, but the way I use it is by calling Rstudio from cluster in
an X-server. If the connection to the cluster breaks, Rstudio can't push
the display, so it dies. There is an rstudio-server supposed to be better,
I am waiting for Michael to install it. Nevertheless, a save function for
antsR will be necessary sooner or later.—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
Problem is there is no antsR in Windows, haven't figured out a way to install it.
from antsr.
Just pushed save.ANTsR and load.ANTsR, which should solve this problem. It works for my test cases, but if you could make sure it works for you that would be helpful. Ended up being a little trickier than I thought it would be.
from antsr.
generated a new warning from R CMD check
- checking R code for possible problems ... NOTE
load.ANTsR: no visible binding for global variable ‘ANTsRImageData’
Found the following assignments to the global environment:
File ‘ANTsR/R/save.ANTsR.R’:
assign(as.character(ANTsRImageData$names[ii]),
antsImageRead(file.path(filename,
paste(as.character(ANTsRImageData$names[ii], ".nii.gz", sep = ""))),
ANTsRImageData$dims[ii], ANTsRImageData$pixeltypes[ii]),
envir = .GlobalEnv)
- checking Rd files ... OK
brian
On Thu, Mar 5, 2015 at 10:58 PM, bkandel [email protected] wrote:
Just pushed save.ANTsR and load.ANTsR, which should solve this problem. It
works for my test cases, but if you could make sure it works for you that
would be helpful. Ended up being a little trickier than I thought it would
be.—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
Shoot. Sorry about that. Should be fixed now.
2015-03-06 16:14 GMT-05:00 stnava [email protected]:
generated a new warning from R CMD check
- checking R code for possible problems ... NOTE
load.ANTsR: no visible binding for global variable ‘ANTsRImageData’
Found the following assignments to the global environment:
File ‘ANTsR/R/save.ANTsR.R’:
assign(as.character(ANTsRImageData$names[ii]),
antsImageRead(file.path(filename,paste(as.character(ANTsRImageData$names[ii], ".nii.gz", sep = ""))),
ANTsRImageData$dims[ii], ANTsRImageData$pixeltypes[ii]),
envir = .GlobalEnv)
- checking Rd files ... OK
brian
On Thu, Mar 5, 2015 at 10:58 PM, bkandel [email protected] wrote:
Just pushed save.ANTsR and load.ANTsR, which should solve this problem.
It
works for my test cases, but if you could make sure it works for you that
would be helpful. Ended up being a little trickier than I thought it
would
be.—
Reply to this email directly or view it on GitHub
#16 (comment).—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
still seeing:
Found the following assignments to the global environment:
File ‘ANTsR/R/save.ANTsR.R’:
assign(as.character(ANTsRImageData$names[ii]), antsImageRead(file.path(filename,
paste(as.character(ANTsRImageData$names[ii], ".nii.gz", sep = ""))),
ANTsRImageData$dims[ii], as.character(ANTsRImageData$pixeltypes[ii])),
envir = .GlobalEnv)
from antsr.
i think you need something like this:
http://www.talkstats.com/showthread.php/38050-CRAN-submission-problem-help-brainstorming
from antsr.
Ah, that's a good idea. Should've realized that would be considered
"anti-social" by CRAN.
2015-03-08 13:02 GMT-04:00 stnava [email protected]:
i think you need something like this:
http://www.talkstats.com/showthread.php/38050-CRAN-submission-problem-help-brainstorming
—
Reply to this email directly or view it on GitHub
#16 (comment).
from antsr.
Related Issues (20)
- ERROR: Parsing error: The keyword 'const' is reserved
- Errors in buliding ANTsR vigniettes HOT 1
- AAL template extends beyond MNI cortical surface HOT 7
- installation problem antsLibs() Makevars:6: *** missing separator. Stop. HOT 5
- Error
- antsMotionCalculation Error HOT 1
- colorbar key for antsrSurf HOT 6
- Installation fail with devtools HOT 5
- details about mnib HOT 1
- Failing on ITK when running LINDA HOT 6
- Proper similarity metric for Affine registration HOT 3
- MVPA using ANTsR?
- ITK bug in createJacobianDeterminantImage after upgrade HOT 14
- aslPerfusion HOT 11
- Installation error on Mac OS 12.6.3 with devtools HOT 11
- R version issues HOT 3
- ITK_GLOBAL_NUMBER_OF_THREADS is ignored HOT 2
- How to pass command line arguments to antsRegistration? HOT 4
- Guidance on Extracting Numeric Values of Gaussian Curvature from Image Class HOT 1
- Resampling an image to source image geometry HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from antsr.