I am using pbapply::pblapply(.., FUN = myfun, ..) to do some parallel computing. Inside the myfun, I use try(my_algo(), silent = T) to catch errors for the algorithm. This algorithm sometimes meets error messages but still returns a value. However, after using the try() function, I can't get the value but only the error message. If I run the my_algo() without parallel computation, it will return the value. It seems whether or not getting the value has to do with the pbapply::pblapply(). But if I ignore the error without using try() and still use pbapply::pblapply(), the execution will stop when error is incurred. So is there a way to suppress the error and get the value for results, while still computing the algorithm in parallel?
About try() function in parallel computing
38 Views Asked by Phoebe At
0
There are 0 best solutions below
Related Questions in R
- How to make an R Shiny app with big data?
- How do I keep only specific rows based on whether a column has a specific value?
- Likert scale study - ordinal regression model
- Extract a table/matrix from R into Excel with same colors and stle
- How can I solve non-conformable arguments in R netmeta::discomb (Error in B.matrix %*% C.matrix)?
- Can raw means and estimated marginal means be the same ? And when?
- Understanding accumulate function when .dir is set to "backwards"
- Error in if (nrow(peaks) > 0) { : argument is of length zero Calls: CopywriteR ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution ha
- How to increase quality of mathjax output?
- Convert the time intervals to equal hours and fill in the value column
- How to run an R function getpoints() from IPDfromKM package in an R shiny app which in R pops up a plot that utilizes clicks to capture coordinates?
- Replace NA in list of dfs in certain columns and under certain conditions
- R and text on Cyrillic
- The ts() function in R is returning the correct start and frequency but not end value which is 1 and not 179
- TROUBLING with the "DROP_NA" Function
Related Questions in DOPARALLEL
- How to pass once the full dataset to one worker and specific subsets to the other workers in foreach loop using isplit()
- doParallel foreach with many for-loops within the foreach
- R foreach do parallel %dopar% performance problems (and possibly affecting entire computer)
- StopIteration error in nested foreach/for loop
- Parallel processing in R using multiple cores and using a function
- uses a function that calls another in a foreach loop dopar
- Continue to interact when there is a long calculate
- memory usage when splitting large dataframe using lapply
- When is furrr::future_pmap() faster than pmap()?
- doPar does not initialize when run through Rscript
- Parallel tasks not removed after stopping cluster
- do.call() function within %do.par%, function arguments not found
- Ordering issues in foreach in R
- Acceleration with DoParallel in R not working in my code
- Limit iterations in foreach and doParallel
Related Questions in PARALLELS
- Why does my Recaptcha work locally, but fails when using network device?
- Using Parallels to run Appium Python automation. Getting error: [WebDriverAgentMac] Mac2Driver host process has exited with code null, signal SIGABRT
- PostgreSQL: out of memory on Linux
- Access to localhost on Mac OS Sonoma 14.1.2 (23B92) from Parallels 19.1.0 (54729) Windows 11
- .NET8 MAUI Android app debugging not working on Win11/Parallels/Visual Studio 2022
- Error with connecting a windows VM to mac localhost SQL database server
- ip link bridge error on Ubuntu in Parallels Apple Silicon
- How to Set Up Modbus Poll Connection via USB to RS485 on Parallels Desktop for Mac
- Windows 11 ARM Copilot on macOS with Parallels?
- IISExpress not starting on ARM64 Mac / .NET 4.8
- Unable to run iisexpress on windows 11 on parallels VM
- MAC with Parallels windows support on visual studio
- Why can't I connect to my SQL Server Express database from a .NET website running on IIS Express in Windows 11 ARM on M1 Macbook using Parallels
- Cannot access SQL Server Express on Mac using Docker
- SqlServerTypes ARM64 .NET Parallels 'Error loading msvcr120.dll (ErrorCode: 193)'
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?