[R] Preventing loading of user packages

Ista Zahn istazahn at gmail.com
Mon Aug 25 16:11:45 CEST 2014


On Mon, Aug 25, 2014 at 5:58 AM, Jonathon Love <jon at thon.cc> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hi,
>
> I'm trying to prevent the loading of packages from the 'personal
> library'

Of behalf of the users you are about to cripple, please, do not do that!

-Ista

on an OS X machine. i.e. the packages that are normally
> placed somewhere like:
>
> ~/Library/R/3.0/library
>
> There is a file in the R.framwork directory:
>
> /Versions/3.0/Resources/etc/Renviron
>
> which contains a line:
>
> R_LIBS_USER=${R_LIBS_USER-'~/Library/R/3.0/library'}
>
> but commenting this out does not prevent R from loading from that
> location.
>
> is there a way to prevent loading from that location?
>
> with thanks
>
> jonathon
>
> - --
>
> JASP - A Fresh Way to Do Statistics
> http://jasp-stats.org/
>
> - --
>
> How happy is he born and taught,
> That serveth not another's will;
> Whose armour is his honest thought,
> And simple truth his utmost skill
>
> This man is freed from servile bands
> Of hope to rise, or fear to fall:
> Lord of himself, though not of lands,
> And, having nothing, yet hath all.
>
>   -- Sir Henry Wotton
>
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
> Comment: GPGTools - https://gpgtools.org
>
> iQIcBAEBCgAGBQJT+wi9AAoJEH277gjmPGDYzkkP/0rA4bwVK9+E7Y9S2f/8+mpY
> QTgGS8Q19YfFd9ZgQICM+Zb9s+cZiC60EwC8IBlBpf2fMGioKFtv8fGFrTKOFpOl
> 8H758D/HdkvzwpQ/XCDP+sNQQ3VNxryoKzgXV7O5vusKjnfRO8nmpldjqURnIoze
> LUvUYgp3ySK3JfjZwBlpcGzahnhl95KBWQzpW2cXSJH0SaJ9jzfO6OHVEZPmJaVi
> llePJqJJ36ZlI1XUt9XZIySfsw7o1efcjLNdFq2UYFExEI17bqa3DihuXRAzBBSF
> 1sWPQGmTGAn6N9MT7EJ7UxBiSMTvnbO/fjKNxjRGk+p89h+bmrdVmnn408QGkIe/
> d+os4++sG9nLVywLduJ/tCemMfWjRVDBCwlCbTrRbehi95UqX3UF5K6a2Iq7FMV7
> 3Y4oan2DcRdFzNClLIkDbNVYTPz08fsr3xhTNgfXr1ewhaF6ZPqp0WOBk1yMOw8D
> 6Gy/T/xy295jx4KeMsYL+bJz69xOrfb0+1tbdy4PeFHU2VzF2GauGjhVSGI5AV/b
> WETcfCEGuSqCiJQJQTuZpq4efQDQUGh3dhhelzFZ7CNJuHXzRIeW6OCgylaUhvl6
> rG5hr/wIcx4jctiu/8ho0GnaV7UFgPBt5PmJtpZeSXYoLUJD0o0TdJ4X2dJX2cMC
> yBw4k89c84TcSQcwoxSf
> =hnwc
> -----END PGP SIGNATURE-----
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list