I was trying to be cute with a company-internal package and used

    if (Sys.info()["sysname"]=="Windows") {
        update.packages(repos="http://some.where.internal/R";, ask=FALSE)
    }

but that of course fails as the package itself is loaded and cannot be
upgraded (as it contains a dll) when loaded.  Smart move by the OS.

Can anybody suggest a workaround, other than introducing a dll-free wrapper
package that can in fact test for the local packages before it would load
them? 

Placing the test into Rprofile.site is not a valid answer as that file is
hiding on each user's drive and out of my reach.

Dirk

-- 
Three out of two people have difficulties with fractions.

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to