methods::getMethods() function wasimported but not used any more. The import is dropped now.file_edit() is not available anymore because JGR is not maintained any more and we can eliminate thedependency to {rJava} and a Java installation.Theaka() function objects are nowaka andfunction objects withprint() andstr() methods. A new argumenturl= allows to indicate an http(s) URL for the help page ofthe object.
A functionsection() allows to document differentsections in sets of objects.
aka() (description + seealso + example).print.rbenchmark() was notexported.Function._(x, code) is removed from here to beincluded into the {svFlow} package where it is moreappropriate.
Functionhint() is renamedaka() (alsoknown as) because the name is much more in line with what it does.alias() would have been an even better name, but there isalreadystats::alias() and we don’t want a conflict on thisfunction.
rbenchmark() provides R Benchmark version 2.6without needing to source external code.
Functioncut_quantile() likecut(), butcalculating breaks on quantiles in order to break down the vector intointervals of equal number of items.
Functionhint() added to attach information to anobject (an “alias” to another object that has an help page, or a“comment” information to display about the object). The correspondinginformation and help page can be displayed with.?obj.
Function._(x, code) allows to use a concise syntaxto pass a left-hand side argument to dot (.) into theright-hand side of a pipe operator, even if it does not support the dotitself (like the standard R pipe|> in R >=4.1).
last.warning) into baseenvironment: not permitted any more in R >= 4.1.0.pcloud() andpcloud_crypto() ease the management of files that arelocated in a p-Cloud drive (p-Cloud is a cloud storage system)..Traceback is not set any more in the base environmentbycapture_all() because CRAN policy does not allow it. Thevariable.Traceback_capture_all is set intemp_env() instead. It can be retrieved withget_temp(".Traceback_capture_all").completion():name.or.addition= which determines if the function returnsthe completion name, completion additions or both. Thanks toNews.md reworked inR CMD build-compatible format, andTODOreworked asTODO.md.
‘pkgdown’ site added.
about() added and a special version of? accepts.? as a shortcut toabout(), but is otherwise, compatible withutils::?.
subsettable functions for argumentstype = orwhich = added.
captureAll() andparseText() were notexported anymore after switching help pages to Roxygen2. Fixed.R CMD check.New, snake_case names of all the functions. Old camelCasefunctions names are kept for compatibility, e.g.,captureAll() ->capture_all().
All documentation converted to Roxygen2 format.
Tests converted totestthat format.
package() is reworked to record packages it cannotinstall, and theInstall() function uses theseautomatically.
_ Newis_rstudio(), andis_rstudio_server()functions. Also,file_edit() detects if RStudio is used andget an internal buffer to edit a file by default in that case.
toRjson() adapted to be compatible with R >= 3.5.0(thanks to Martin Maechler).Switch to Github for development; CI added.
Code added to make ‘svUnit’ tests compatibles with RStudio anddevtools::test().
Deprecated functionsArgs(),CallTip(),clipsource(),Complete(),CompletePlus(),getEnvironment(),Parse(),r(),Sys.tempdir(),Sys.userdir() are now defunct and eliminated from thepackage.
Functionpkg() is renamedpackage().
Reworked code that was using:::.
On MacOS >= 10.7, the package could not load because of awarning (converted into an error) in.onLoad(). Solved.(thanks Travis Porco for bug report).
isHelp() now usesfind.package()instead of the deprecated.find.package().
TempEnv() attaches tothe search path is now called'SciViews:TempEnv' instead ofsimply'TempEnv' to avoid potential conflicts with otherpackages in CRAN.Added thefileEdit() function.
ReworkedargsTip() function to eliminate old code(for R < 2.10).
parseText() reported an error instead ofNA in the case last string is incomplete in R2.15.
Added functionisJGR().
Added batch processing functionbatch().
Partial argument matching incompletion(),progress() andrmTemp() code fixed.
Call to.Internal(...) incaptureAll()eliminated, but need to call.signalSimpleWarning() that isnot intended for external use anyway.
Call to.Internal(dput(....)) intoRjson() eliminated.
AddedlistToJson() for conversion of lists ofcharacter strings into correct JSON format.
AddedpkgManXXX() functions to run R code for theSciViews package manager.
progress() used\8, that was treated asoctal for R < 2.14. Changed to\b in order to correctthis bug. Thanks Duncan Murdoch for pointing me on this.captureAll() now handles user interrupts and allowsfortraceback() afterwards and default value forsplit= now changed toTRUE. Theecho = argument allows for echoing expressions beingevaluated, like in the usual R console, but a mechanism allows toabbreviate very long expressions.
parseText() is reworked internally and it uses thesrcfile/srcref mechanism introduced in Rrecently.firstline =,srcfilename = andencoding = arguments are added.
Unit tests added (should run with both ‘svUnit’ (advised) and‘RUnit’).
A bug inobjList() is corrected: if the list ofobjects in the environment is cleared, e.g., byrm(list = ls()), the function returned as if nothing waschanged withcompare = TRUE. Now, an attributechanged = is set toTRUE orFALSEto differentiate between “no changes” and “changes towards an emptyenvironment”.
objList().A couple of functions are renamed:Parse() ->parseText(),clipsource() ->sourceClipboard(). Old names are declared deprecated, andwill become defunct before version 1.0-0 of the package.
captureAll() now returnsNA in case ofincomplete line of code parsed byparseText(). It alsodetects ifexpr = is a valid language expression or isNA.
isMac() was not working correctly on Mac OS XLeopard and Snow Leopard (bug corrected).
Sys.userdir() did not expanded tilde in recent Rversions (corrected).
Little change indef() arguments:length.out = instead oflength = to use thesame name as corresponding argument inrep(). Coercion tological is now done usingas.logical()… the result maydiffer from previous implementations.
ForlistTypes(), the convention has changed.Method/type is now separated by an underscore instead as with two dots(like inview_text.default).
Sys.tempdir() andSys.userdir() aredeprecated in favor of the new more general functionssystemFile() andsystemDir().
r() is deprecated in favor ofpkg()(r() is not informative enough and more susceptible to beused elsewhere too).
Args() is deprecated in favor ofargsTip() andCallTip() is deprecated in favorofcallTip() (further homogenization of svMisc functionnames). The newargsTip() andcallTip()functions can reflow the tip to a given width, andcallTip() can also return a short description of thefunction as well as the list of available methods if the tip os askedfor a generic function.
Complete() andCompletePlus() aredeprecated in favor of a uniquecompletion() function. Codeof both original functions has been fused and reworked.
RJSON objects now use a customizedlist() functionto build lists, but also structures and new S4 objects.
captureAll() has now asplit = argumentthat allows to output to the R console, while capturing output.
Bug correction incaptureAll(): call[[1L]] is notsubsettable.
toRjson() andevalRjson() and specification of the RJSON (R-JavaScriptObject Notation), an object exchange format not unlike JSON, but richerand more adapted to represent most R objects.Small changes toobjList() (now look at objects intheir correct environment).
A bug indescArgs() with R >= 2.10 did notallowed to gest arguments description for functions using the... argument. Thanks to Diego Zardetto for pointing thisbug.
index.search() in devel R2.11 inisHelp() anddescFun().descArgs() using the new help system(parse_Rd()), this eliminates the need for the workaroundof version 0.9-54CompletePlus() iseliminated because it raises an error.Complete() now sorts items alphabetically and doesnot return completions as factor type in the data frame anymore.
CallTip() does a better work to find currentfunction, i.e., not only after the opening parentheses(.
Args() now do no place a space anymore between thename of a function and its arguments
Complete() now manages cases where code is likeiris[,iris[[, or where last parsed token isempty (in this case, it returns the list of objects loaded in.GlobalEnv).Complete() now includes additions fromComplete2() andCompletePlus().CompletePlus() removes the weird object names (.__M__, …) which were causing trouble.
CompletePlus() handles completions likea[m.
Complete2() is a temporary new version ofComplete() for experiments.Parse() does not detect incomplete R code any more,fixed [PhG].objList(),print.objectList() andwrite.objList() reworked [PhG].AddedobjList(),print() method for‘objList’ objects andwrite.objList() [KB].
Localization complete and French local file done.
Made backward compatible with R 2.6.0 (was R >= 2.7.0 inprevious version).
captureAll() is reworked by Kamil Barton [KB].Debugging code eliminated (data saved in.GlobalEnv fordebugging).
Error handler added tocaptureAll() - [KB].
CompletePlus() reworked to use man pages instead of.Rd files.
descFun() anddescArgs()added.
CompletePlus() created to obtain information on thecompletion possibilities.objList() did not place each item in a line whenresult is written in a file.
objXXX() functions did not always returned resultsinvisibly. Solved.
Args() is more robust against badname = parameter because it now callsargsAnywhere() within atry().
objInfo() returns also estimated size of objectsthat are not functions.
objSearch() is reworked to return a single stringusingsep = as separator whensep = is notNULL.