![]() Stop("A problem occured in glibrary") #shouldn't get this far down, all returns should be made. Stop(paste("\nIn repsych::glibrary, unable to load: ", paste(librarynames), #message("In repsych::glibrary: Success!") glibrary skims past this formality to install the requested package. ![]() To install a package using the official tools you only need to call the program and use the package name as the argument, the example below is installing the application wine from the current workin directory. This is very simple, in swaret or slapt-get you only need to choose the package and select to install it. Given that we know we want to load a given package, actually fetching it is a formality. To install Slackware from a pre-built package you can use installpkg, upgradepkg, swaret or slapt-get. #' The primary aim of this function is to make loading packages more transparent. Pushes/pulls/forks welcome.Ĭode for the function: #' Try to load a library, if that fails, install it, then load it. That is right, packages, multiple packages can be loaded/installed in a single pass along with their dependencies (at least usually, there may be a bug here).Į.g.: glibrary(xtable,sos,data.table) but I don't think it will freak out if you call glibrary("xtable","sos","data.table") instead.If the install fails it will notify you which packages failed to install.It tries to load the library (this step could be made more efficient using some of the methods above).If you are on an older version of R it will roll back and pick a mirror based on country code. It will create entries for the pack- age in /var/adm/packages and /var/adm/scripts, and will copy all the files from the current directory and its sub- directories onto your root directory. When you call installpkg with the -r option, it will assume that you have created the structure for the package in the cur- rent directory (such as when you untar a package in a directory by itself). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |