- Preliminary support for new features introduced in R4.1.0
i.e. gradients, patterns, path clipping and masks
- "preliminary support" means that devout no longer segfaults when running under R4.1.0
- All callbacks related to these new features do nothing at all, and do not yet attempt to call back into any user-defined R functions
- The name of the device can now be set by passing
device_name
argument tordevice()
- Check validity of
rfunction
on initial function call tordevice()
and store as part ofrdata
data structure.
- Removed more caching/copying that is no longer needed now that
rdata
is an environment rdevice()
now accepts either a function object or character string as the callback function. The character string argument is soft-deprecated, and passing in an actual function object is the preferred method.- The initial call from Rcpp back into R (into
devout::rcallback()
) is now done differently. This fixes some namespace issues when using devout from within another package.
- Removed some caching/copying that is no longer needed now that
rdata
is an environment - Removed the option 'DEVOUT_KEEP_RDATA'. If you need to access the cached
rdata
for a current device, just view it indevout:::device_rdata
any time after opening the device and before callingdev.off()
- Internal
rdata
data structure is now an environment rather than a list. - Change default sizing from 400x300 (pixels) to 10x8 (inches)
- Refactored the advanced debug mechanism for
rdata
. This was used often during initial package development, but is less used now. To enable, setoptions(DEVOUT_KEEP_RDATA = TRUE)
.
- Using
new/delete
rather thancalloc/free
to address a segmentation fault on windows.
- More verbose error message for bad return value
- Update
devinfo$device_call
to includerect
which was erroneously omitted in prior release.
- Major internal refactor
- Added the
rdevice
which allows the user to write devices using just R - Re-wrote
ascii
device to use the underlyingrdevice
- Inclusion of
rdevice()
such that graphics devices can be written in R
- Added support for multiple page output
- If output to console, pages will be output one after another
- If output to file and filename is a format string (e.g. "output%03i.txt") then unique files will be generated for each page
- If output to file and filename is a NOT a format string (e.g. "output.txt") then only the last page will be saved to file
- Added support for path objects, so
tmap
output now works.
- Initial release includes alpha versions of
ascii()
anddescriptive()
devices.