Is there a way to prevent a specific dataset from being loaded from the datasets package?


MA Fund

At startup, R 3.6.7 loads stats, graphics, grDevices, datasets, methodsand basepackages.

I especially want to remove the datasets datasetsrelated to US states (state.name etc) as they would break autocomplete in most of my projects which involve states like Australia or India and have similarly named variables.

Is there a straightforward way to prevent loading only a few datasets? I don't want to remove the full package because mtcarsof people who need test based from time to time.

Thanks for any tips.

Edward

In the startup file you can add:

data(mtcars)
detach(package:datasets)

Maybe data is also added irissince it has a "factor" variable.

Related


How to prevent a specific dynamic library from being loaded

Herman I want to use an ancient software (Unreal Tournament "Classic" from 1999, also known as UT99). The dynamic library libtxc_dxtn.sois loaded implicitly in search of optional S3 Texture Compression (S3TC) support. Unfortunately, when loading the library, t

How to prevent a specific dynamic library from being loaded

Herman I want to use an ancient software (Unreal Tournament "Classic" from 1999, also known as UT99). The dynamic library libtxc_dxtn.sois loaded implicitly in search of optional S3 Texture Compression (S3TC) support. Unfortunately, when loading the library, t

How to prevent a specific dynamic library from being loaded

Herman I want to use an ancient software (Unreal Tournament "Classic" from 1999, also known as UT99). The dynamic library libtxc_dxtn.sois loaded implicitly in search of optional S3 Texture Compression (S3TC) support. Unfortunately, when loading the library, t

How to prevent a specific dynamic library from being loaded

Herman I want to use an ancient software (Unreal Tournament "Classic" from 1999, also known as UT99). The dynamic library libtxc_dxtn.sois loaded implicitly in search of optional S3 Texture Compression (S3TC) support. Unfortunately, when loading the library, t

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile inside the specfolder I want to use with RSpec . However, this file is loaded every time

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile that lives in the specfolder I want to use with RSpec . However, this file is loaded eve

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile that lives in the specfolder I want to use with RSpec . However, this file is loaded eve

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile that is inside the folder I want to specuse with RSpec . However, this file is loaded ev

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile that is inside the folder I want to specuse with RSpec . However, this file is loaded ev

How to prevent RSpec helpers from being loaded

Coding Rabbit Currently, I'm using Capybara to write integration tests for our Rails 4 application. To make it as lightweight as possible, I wrote a capybara_helper.rbfile that is inside the folder I want to specuse with RSpec . However, this file is loaded ev

Is there a way to prevent a class from being reflected?

Mixture: I'm writing a cryptography class while teaching myself Java's security api. This class will contain some sensitive content like encryption type etc. All of this can be found reflectively by someone's motives. I've used reflection before to get around

Is there a way to prevent data from being wiped in PWA?

Jason Cochran Let's say I have a client that spends a lot of time and money creating a custom database. Therefore, additional data security is required. They are concerned that if the information in the database is allowed to be accessed from a normal web appl

Is there a way to prevent data from being wiped in PWA?

Jason Cochran Let's say I have a client that spends a lot of time and money creating a custom database. Therefore, additional data security is required. They are concerned that if the information in the database is allowed to be accessed from a normal web appl

Is there a way to prevent a class from being reflected?

Mixture: I'm writing a cryptography class while teaching myself Java's security api. This class will contain some sensitive content like encryption type etc. All of this can be found reflectively by someone's motives. I've used reflection before to get around

Is there a way to prevent data from being wiped in PWA?

Jason Cochran Let's say I have a client that spends a lot of time and money creating a custom database. Therefore, additional data security is required. They are concerned that if the information in the database is allowed to be accessed from a normal web appl

Is there a way to prevent data from being wiped in PWA?

Jason Cochran Let's say I have a client that spends a lot of time and money creating a custom database. Therefore, additional data security is required. They are concerned that if the information in the database is allowed to be accessed from a normal web appl