later icon indicating copy to clipboard operation
later copied to clipboard

Schedule an R function or formula to run after a specified period of time.

Results 43 later issues
Sort by recently updated
recently updated
newest added

When `current_loop()` is called from the R console, it should always return the global loop, with ID 0. However, it's sometimes possible get it in a state where the current...

See here: https://github.com/r-lib/later/blob/ae297fa9a51e7b162c26697f4ab9a97079020c59/R/later.R#L50-L54 This will eliminate the need for a callback that does the following: * the callback schedules the private loop to run from the main loop. * it...

Some time after #104 is released and the new version of later is in widespread use, we should modify inst/include/later.h as described here: https://github.com/r-lib/later/blob/97462f4146435fc95e73ef0f639c1827ba4f752d/inst/include/later.h#L88-L95

Using const refs when possible will reduce unnecessary copies.

Currently it's possible for a callback to call `run_now()`. Perhaps later should warn/error when this happens? This is related to rstudio/httpuv#148. In this example, the second `run_now()` makes the callbacks...

When I build the package, I get: ``` clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o later.so RcppExports.o callback_registry.o init.o later.o later_native.o later_posix.o later_win32.o timer_posix.o timestamp_unix.o timestamp_win32.o...

If an error occurs when running a callback, it prints out an error message, but it can be difficult to track down the source. For example: ``` > later::later(identity) later:...

Currently, later.h and later_api.h can only be included in C++ code. We should make it possible to use it from C as well.

Hello, I was attempting to install `later` on RHEL 6.6, which has the following version of gcc: ``` $ gcc --version gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11) Copyright (C)...

The RNG state is not always preserved when executing callbacks. This is similar to rstudio/shiny#1768. This example sets the value of `.Random.seed` in a callback, but it appears to not...