Skip to content

Like R base's library() but streamlined, trying to install packages if not found in library paths.

License

Notifications You must be signed in to change notification settings

Patrikios/attachee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

attachee

Packages functionality around library() but streamlined with install if package(s) not found and optional isntalled packages update beforehand.

Grabs (from library paths or otherwise tries to install) and attaches a package.

A POC package attachee works like library() but tries to intall the given package(s) if no found in library paths. Its flagship function is 'grab_and_attach' that is inteded to get deloped towards a friendly attitude for behind the firewall - company context - installs.

In order to attach the whole list of packages in one command, you can do:

grab_and_attach(this_is_error, "again_error", data.table, "lubridate")

Outputs:

grafik

It will ignore packages that cannot be fetched from the given mirror and continue with loading and isntalling with those that can be determined.

If cli package is installed will give coloured outputs, otherewise cat is used for messages.

Works on string values as well as with non-standard evaluation of values.

Use with caution, as mentioned it is a POC in very early stage.

About

Like R base's library() but streamlined, trying to install packages if not found in library paths.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages