[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-devel
Subject:    Re: [Rd] Feature request: Limiting output of installed.packages()
From:       Sokol Serguei via R-devel <r-devel () r-project ! org>
Date:       2023-04-19 14:21:51
Message-ID: 31b40291-38d2-57d2-65ba-30e3e2d3e2af () insa-toulouse ! fr
[Download RAW message or body]

Le 19/04/2023 à 16:04, Chris Woelkers - NOAA Federal via R-devel a écrit :
> I'm going to ask this here before submitting it to Bugzilla. Is this a good
> idea and worthy of being considered? I think it is but others may not feel
> the same.
> The installed.packages() function is very useful but can be more
> information than needed. While the function includes the argument 'fields'
> it seems to do nothing as all fields are outputted when running the
> function with or without the 'fields' argument.
> I suggest changing the functionality to do the following. When the 'fields'
> argument is not present all fields are outputted as is the current
> behaviour. But when the 'fields' argument is present only those fields that
> are listed are outputted. This would help me greatly as I could then run
> just the installed.packages(fields = ) function without having to add any
> sorting after the fact.

Not so much typing saved in this case, is it?

    fields=c("Package", "Version")
    plist=installed.packages()[, fields]

Best,
Serguei.


>
> Thanks,
>
> Chris Woelkers
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic