I'm having a hard time installing the package through install_github or even by installing the package from source after directly downloading it, and it seems part of the problem comes from a number of references to a "clean_data" folder that's not in here. Am I missing something?
I kept getting non-zero exit status errors, but I have Rtools and it's properly loaded. I also tried deleting all dependency packages and re-installing them manually. I also was getting a no-staged-install error, so I added StagedInstall: no
to the Description file.
I'm using Windows 10, R version 4.0.3. This is the most recent version of the error message.
> install.packages("crime_data-master", repos = NULL, type="source")
Installing package into ‘C:/Users/Andrew/Documents/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'crimedata' ...
** using non-staged installation via StagedInstall field
** R
** inst
** byte-compile and prepare package for lazy loading
Downloading GitHub repo jacobkap/asciisetupreader@HEAD
v checking for file 'C:\Users\Andrew\AppData\Local\Temp\Rtmp4gigrA\remotes2dac5b004a2e\jacobkap-asciiSetupReader-c20e36a/DESCRIPTION' ...
- preparing 'asciiSetupReader': (1.9s)
v checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'asciiSetupReader_2.3.2.tar.gz'
Installing package into 'C:/Users/Andrew/Documents/R/win-library/4.0'
(as 'lib' is unspecified)
* installing *source* package 'asciiSetupReader' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
converting help for package 'asciiSetupReader'
finding HTML links ... done
make_sps_setup html
parse_setup html
read_ascii_setup html
read_ascii_setup_addin html
sas_ascii_reader html
spss_ascii_reader html
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded from temporary location
*** arch - i386
*** arch - x64
** testing if installed package can be loaded from final location
*** arch - i386
*** arch - x64
** testing if installed package keeps a record of temporary installation path
* DONE (asciiSetupReader)
Error in setwd(here::here("clean_data/crosswalk")) :
cannot change working directory
Error: unable to load R code in package 'crimedata'
Execution halted
ERROR: lazy loading failed for package 'crimedata'
* removing 'C:/Users/Andrew/Documents/R/win-library/4.0/crimedata'
Warning in install.packages :
installation of package ‘crime_data-master’ had non-zero exit status`