
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@wbg-mde/r-factory
Advanced tools
R integration module of the Metadata Editor application. This module contains R scripts, Node based R utility methods and test cases. This module passing data from NodeJS to R by using PanApps customized version of r-script. This module includes various data import export features as well as data analytic features such as resequence, spread metadata etc. Here are the list features..
SPSS / STATA / CSV
Install Node and R if not installed. Set environment variable for windows.
Check whether R packages are installed and the version. If not please install using the command install.packages("package_name")
Install the dependencies and devDependencies.
npm install
Build the application
npm run build
Test the application
npm run test
Publish the application to npm
npm publish --access public
Unit test are written for each features. You can copy input files to test-data/input
directory. Please see the commands to run unit test below.
Note:- Please start the editor before run the tests. Editor start the OpenCPU API server and it will be used in the unit test.
npm run test
unit test to check the dataset import/export functionalities. Keep only dataset files to be tested in the test-data/input/dataset
folder, remove other files.
known issues - some datasets may fail the unit tests due to labelled integer validation while exporting to STATA dataset format(eg: cs1_pupil.dta)
flow of test execution :-
test-data/input/datasets
directorytest-data/output/datasets
npm run test:resequence
unit test to import dataset and perform resequence on the imported datasets. Drop the dataset files to be tested in the test-data/input/dataset
folder and run command
flow of test execution :-
test-data/input/datasets
directorytest-data/output/json
directorynpm run test:destring
unit test to check destring functionality in the imported file. Since we have to mention the variables to be destringed, the test is limited for a particular dataset "ghs_2015_person_v1.1_20160608.dta". Keep this file in the input folder and remove others while run the test.
flow of test execution :-
test-data/input/datasets
directorytest_data/output/csv/
directorynpm run test:dictionary
npm run test:dictionary:stata
npm run test:dictionary:spss
unit test for export to dictionary format.
flow of test execution :-
test-data/input/datasets
directorytest_data/data-dictionary/
directorynpm run test:validateKey
unit test to check the unique key constraint for the given key variable of a dataset.
Steps :-
test-data/input/datasets
directory.datasetname
and keyVariables
in dist/test/validation.unit.test.js
constructor methodflow of test execution :-
test-data/input/datasets
directoryMIT
FAQs
Metadata editor R integration module
We found that @wbg-mde/r-factory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.