Chris Woelkers - NOAA Federal
2023-Apr-19 14:04 UTC
[Rd] Feature request: Limiting output of installed.packages()
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. Thanks, Chris Woelkers [[alternative HTML version deleted]]
Sokol Serguei
2023-Apr-19 14:21 UTC
[Rd] Feature request: Limiting output of installed.packages()
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 at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel