Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to build on Windows and start working with it #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

antaldaniel
Copy link

I made several small changes to make the vignette platform independent and confirm more to current documentation standards. This is related to the use of file.path(), which creates platform independent path names (and requried by CRAN) and a more explicit configuration of the download.file() function, I used method = 'curl', because the 'auto' method resulted in character coding issues of the STATA and SAS files.

However, the last two chunks do not run at all, and that may be related to either some problem in the code or recent changes in the labelled dependency.

- I used the now-standard data-raw directory for the datasets.
- I used the file.path(..) function for platform independent paths (for Windows compatiblity)

At least on my windows machine, the SAS and
The SAS and STATA files do not download well on Windows machines.
…p.sas7bdat", file.path("..", "data-raw", "datasets", "data.sas7bdat"),

              method = 'curl')
}
# method = 'curl' works on Windows machines. You can set this to 'auto'
# or other on different systems if you get invalid files.
```
… the origianal SPPS file only 0.98 sec versus the original 4.183998 secs

The rationale is that the original had a lot of problems with large Eurobarometer files.
@antaldaniel
Copy link
Author

Apart from the small changes to make the package work on Windows, I created a vectorized version of the create_metadata function. It is running 5 times faster, which is important because the original program has a hard time with GESIS Eurobarometer / EVS surveys.

@muuankarski
Copy link
Owner

Great! Will look at this tomorrow!!

@antaldaniel
Copy link
Author

antaldaniel commented May 14, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants