library("VIM", lib.loc="C:/Program Files/R/R-3.3.2/library")
Loading required package: colorspace
Loading required package: grid
Loading required package: data.table
data.table 1.10.4
 The fastest way to learn (by data.table authors):
 Documentation: ?data.table, example(data.table) and browseVignettes("data.table")
 Release notes, videos and slides: http://r-datatable.com
Error in inDL(x, as.logical(local), as.logical(now), ...) :
 allocation failure in R_setPrimitiveArgTypes
In addition: Warning message:
package ‘VIM’ was built under R version 3.5.1
Error: package or namespace load failed for ‘VIM’
you are using an old version of R with a binary package built under a newer version (3.5). Not a good idea because you can run into issues like you are now. I would either build a package from source on your system or get the correct binary if available.
Why don't use install.packages("VIM") to install the instead of copying ? it will get the correct binary if available.
library("rlang", lib.loc="C:/Program Files/R/R-3.3.2/library")
Error in inDL(x, as.logical(local), as.logical(now), ...) :
 unable to load shared object 'C:/Program Files/R/R-3.3.2/library/rlang/libs/i386/rlang.dll':
 LoadLibrary failure: The specified procedure could not be found.
In addition: Warning message:
package ‘rlang’ was built under R version 3.5.1
Error: package or namespace load failed for ‘rlang’
cderv - In my organisation all software is packaged and deployed in a controlled environment. I need to download each package and install it on a proof of concept PC before handing them over to the Desktop team to package. End users do not have the rights to install packages themselves on the live environment. So I'm unable to use install.packages as I wont be able to capture the additional packages it installs, instead I have to manually download and install each dependant package.
I have tried with the 3.3 version of the VIM package but still no luck, this is the error I see as before:
Error in inDL(x, as.logical(local), as.logical(now), ...) : allocation failure in R_setPrimitiveArgTypes
The same applies to rlang:
Error in inDL(x, as.logical(local), as.logical(now), ...) :
unable to load shared object 'C:/Program Files/R/R-3.3.2/library/rlang/libs/i386/rlang.dll':
LoadLibrary failure: The specified procedure could not be found.
Any further assistance would be gratefully received.
Thanks you
We are also working on offline environment and we use internal cran to install packages. On an online "POC" PC, using miniCRAN you can download all the dependencies you need and create a local cran repository on a filesystem. When this is validated by your IT team, you can use this internal CRAN-like repo for your offline veted environment and install using install.packages. No need to install manually every package.
Moreover, if you wish to continue downloading :package manually, you can at least install them manually in the correct dependency order using install.packages("pkg-file.zip", repos = NULL). It is a local installation. Drawback is dependency is not automatically resolved.
You tried again with VIM but does rlang is correctly installed in correct version ?